teknonweb Posted September 9, 2005 Share Posted September 9, 2005 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? Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted September 9, 2005 Share Posted September 9, 2005 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? <{POST_SNAPBACK}> 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 More sharing options...
teknonweb Posted September 10, 2005 Author Share Posted September 10, 2005 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. <{POST_SNAPBACK}> 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.