Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Only display sale price if it's cheaper


Guest

Recommended Posts

I'm using specials.php for sale items and also as a kinda featured items page. This works fine for me and is much easier than having a seperate featured items box.

 

However, the problem is that all pages have a normal price (crossed through) and sale price (in red). What code would I need to only show the first price if the sale price is cheaper than the normal product price?

Link to comment
Share on other sites

However, the problem is that all pages have a normal price (crossed through) and sale price (in red). What code would I need to only show the first price if the sale price is cheaper than the normal product price?

you need to edit each script separately, and modify the output for the specials price if you want it to show like normal.

 

How do you do this?

When it's a featured product, do you type in the same price as usual and get this result?

 

?200

?200

 

You use the specials table to retrieve the specials price and then you output using the <s></s> html tags for the overstrike.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...