Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Price display


wahoshi

Recommended Posts

This is just a small problem and I'm sure there's a simple answer. I'm using 2.2rc2a

 

I have set quantity/price attributes for the products on this site. In adding products, I set the price to zero because I want the customer to choose the quantity and price he wants from the drop-down. When the products_info page come up, it displays the price as $0.00. This could be confusing since there are 5 different prices in the drop down below.

 

I have tried to find a place to eliminate the price put into the product_info page by the program, but, so far, have not had any luck. As I said, I can work with it the way it is, but I'd rather not see $0.00 at the top of the product_info page.

 

Maybe somebody can direct me to the correct include to eliminate this price display?

 

Thanks,

Frank

Link to comment
Share on other sites

There is normally a line in product_info.php that says

echo $products_price;

and you could make the price not display by removing that line or doing a logic check, e.g.

echo (($product_info['products_price'] > 0) ? $products_price : '');

Always back up before making changes.

Link to comment
Share on other sites

There is normally a line in product_info.php that says
echo $products_price;

and you could make the price not display by removing that line or doing a logic check, e.g.

echo (($product_info['products_price'] > 0) ? $products_price : '');

 

Hi, Matt,

 

That did the trick. I knew it was something simple like that. Thanks for your help.

 

Frank

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...