![]() |
Sale Price vs List Price
I have my cart setup with a "Normal Price" and a "Sale Price", I used an "if" statement to tell the page to only show the sale price if it is greater than 0, otherwise it will just show the normal price.
My data is fed from another system and updated automatically in x-cart every 2 hours, so this needs to stay as automated as possible. In some cases (when I use variant items) the sale price gets fed into xcart as the same number as the normal price. With the way it is set up now, this displays both prices (which are the same as each other). Now I need to figure out the code to tell the page that "if the variant price matches the normal/list price, than do not display it" but "if the variant price is less than the normal/list price than display it" but not if it equals 0! Does anyone know how to do this? Thanks in advance! :D |
Re: Sale Price vs List Price
By default x-cart only displays the sale price if it less than the market (normal/list/retail) price, you shouldn't have to change it. I would suspect that the problem is connected with the change you made to the code.
|
All times are GMT -8. The time now is 11:10 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.