| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Sale Price vs List Price | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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! ![]()
__________________
X-Cart Pro 4.4 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
|
|||
X-Cart forums © 2001-2020
|