School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
You're Browsing As A Guest! Register Now...
Become an Expert!

Join 353,888 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,178 people online right now.Registration is fast and FREE... Join Now!



PHP & Zencart Is this possible?

PHP & Zencart Is this possible? Rate Topic: -----

#1 rusta12  Icon User is offline

  • New D.I.C Head
  • Pip

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


Dream Kudos: 0

Post icon  Posted 14 June 2007 - 04: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
Was This Post Helpful? 0
  • +
  • -


#2 Styx  Icon User is offline

  • D.I.C Head
  • Icon

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


Dream Kudos: 225

Re: PHP & Zencart Is this possible?

Posted 14 June 2007 - 02: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 - 02:15 PM

Was This Post Helpful? 0
  • +
  • -

#3 rusta12  Icon User is offline

  • New D.I.C Head
  • Pip

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


Dream Kudos: 0

Re: PHP & Zencart Is this possible?

Posted 14 June 2007 - 02: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
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month