Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Sale Price vs List Price

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-12-2011, 01:27 PM
 
Fascinations Fascinations is offline
 

Member
  
Join Date: Dec 2010
Posts: 16
 

Default 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!
__________________
X-Cart Pro 4.4
Reply With Quote
  #2  
Old 07-17-2011, 06:45 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:30 AM.

   

 
X-Cart forums © 2001-2020