View Single Post
  #1  
Old 03-10-2011, 07:14 AM
 
cartguy cartguy is offline
 

Member
  
Join Date: Jan 2007
Posts: 14
 

Default Products with Options - Displaying Regular and Wholesale Pricing

Hi, I've been trying to get this working for days and have all but given up. I want to display both regular price and wholesale price when available on a product. This code works great and behaves as expected except when being applied to a product which also has options enabled (in this case, the product has a wholesale price and color option). Any ideas?

Running v 4.0.19

Code:
{if $product_wholesale ne ""} {section name=wi loop=$product_wholesale} {if $smarty.section.wi.last} <font style="font-weight: normal; font-size: 10px; ">Full Roll:</font> {include file="currency.tpl" value=$product_wholesale[wi].price}&nbsp;&nbsp;&nbsp; <font style="font-weight: normal; font-size: 10px; ">Partial Roll:</font> {include file="currency.tpl" value=$product.price} {/if} {/section} {else} {include file="currency.tpl" value=$product.price} {/if}
__________________
X-Cart Version 4.0.19
Reply With Quote