seahawkfan
10-23-06, 11:53 AM
Hello everyone,
I am trying to get a strike through to work on my cat and prod pages. I am using the following 2 codes. One to only show price if cost is greater than price and one to show only if price is greater than cost. I want the discount to work for the products that are discounted, but not show on the products that are not discounted as it shows a negative number.
%IF(Products.d.price GT Products.d.cost)% Price: %prodcostF%
%IFEND%
%IF(Products.d.cost GT Products.d.price)% %begin_costdiscount%
Retail: <strike>%prodcostF%</strike><br>
%end_costdiscount%
You save: %prcntsave%%<br>
Your Price: %prodpriceF%%IFEND%
My problem is that i can get this to work on the product pages but not on the cat pages.
Using Mive 4.23, cat, and prod page templates
Thanks in advance for any help
I am trying to get a strike through to work on my cat and prod pages. I am using the following 2 codes. One to only show price if cost is greater than price and one to show only if price is greater than cost. I want the discount to work for the products that are discounted, but not show on the products that are not discounted as it shows a negative number.
%IF(Products.d.price GT Products.d.cost)% Price: %prodcostF%
%IFEND%
%IF(Products.d.cost GT Products.d.price)% %begin_costdiscount%
Retail: <strike>%prodcostF%</strike><br>
%end_costdiscount%
You save: %prcntsave%%<br>
Your Price: %prodpriceF%%IFEND%
My problem is that i can get this to work on the product pages but not on the cat pages.
Using Mive 4.23, cat, and prod page templates
Thanks in advance for any help