View Single Post
  #4  
Old 09-11-2009, 08:36 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Select category for discount pricing

OK, so you want a different price display for your closeouts category than the rest. OK

you tried this:
Code:
{if $product.price ne 0 && $cat="78"} <font class="MarketPrice">{$lng.lbl_market_price}:{math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount} &nbsp;<span id="save_percent"><font class="closeoutsdiscount">{ $discount }</span>%</font>

and it didn't work. It looks about right to me, but you haven't got and end if

Code:
{if $product.price ne 0 && $cat="78"} <font class="MarketPrice">{$lng.lbl_market_price}:{math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount} &nbsp;<span id="save_percent"><font class="closeoutsdiscount">{ $discount }</span>%</font> {/if}

I take it you have used webmaster mode to check the value of $cat for your closeouts category?
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote