Select category for discount pricing
I have a closeouts (root category) and I need the correct variable to select the root category for my closeouts and display the Market price discount for any product in that category in the product.tpl.
I tried
{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}
<span id="save_percent"><font class="closeoutsdiscount">{ $discount }</span>%</font>
What variable would I use for the root category to select in my product.tpl?
__________________
______________
version 4.1.9 Gold
|