Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Price Display


teknonweb

Recommended Posts

I have a web page I want to display instead of loading OSCommerce Shopping cart.  However when I add the product that I want to go to the webpage, the price displays as $0.00.  How do I keep the price from displaying when there is no price?

 

an easy if else statement for price == '0' would do this for you on product info. You'd need to repeat it though for all spots showing it ... unless you change the class for displaying the price. Of course, you could also create a new function and wrap that around the format call, if you prefer not to change classes.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

an easy if else statement for price == '0' would do this for you on product info. You'd need to repeat it though for all spots showing it ... unless you change the class for displaying the price. Of course, you could also create a new function and wrap that around the format call, if you prefer not to change classes.

Ok I will try it. I am not much of a coder right now so I am probably going to try doing it on all the spots. Thanks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...