2 Replies - 1429 Views - Last Post: 14 June 2007 - 03:52 PM Rate Topic: -----

#1 rusta12  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 14-June 07

PHP & Zencart Is this possible?

Post icon  Posted 14 June 2007 - 05:16 AM

I am trying to hide a value of $0.00 (otshipping) using a Stylesheet. The ID for this value is "otshipping" but I am unable to make this hidden as the css for "totalbox" covers the css for "otsubtotal" , "otshipping" , "ottax" & "ottotal". The code for the order-totals template is:

?>
<?php 
/**
* Displays order-totals modules' output
*/
for ($i=0; $i<$size; $i++) { ?>
<div id="<?php echo str_replace('_', '', $GLOBALS[$class]->code); ?>">

<div class="totalBox larger forward"><?php echo $GLOBALS[$class]->output[$i]['text']; ?></div>
<div class="lineTitle larger forward"><?php echo $GLOBALS[$class]->output[$i]['title']; ?></div>

</div>
<br class="clearBoth" />
<?php } ?>




Is it possible to put something in the above code to make just "otshipping" hidden but keep the others visable either by css or another way?

Sub-Total: $6.60 (otsubtotal)

Delivery cost to be advised (Delivery will be invoiced at cost): $0.00 (otshipping)

GST: 0.60 (ottax)

Total: $6.60 (ottotal)


Thanks
Rusta

Is This A Good Question/Topic? 0
  • +

Replies To: PHP & Zencart Is this possible?

#2 Styx  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 192
  • Joined: 04-March 07

Re: PHP & Zencart Is this possible?

Posted 14 June 2007 - 03:14 PM

You could check it using php to determine whether or not to show it.

Or, you could use something like a toggle in css/java script:
http://www.netlobo.com/div_hiding.html

This post has been edited by Styx: 14 June 2007 - 03:15 PM

Was This Post Helpful? 0
  • +
  • -

#3 rusta12  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 14-June 07

Re: PHP & Zencart Is this possible?

Posted 14 June 2007 - 03:52 PM

Ok thanks, obviously not a simple undertaking that I can do myself :D

I will try and work something out

Thank you for your time & reply

Rusta
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1