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

Products with Options - Displaying Regular and Wholesale Pricing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
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:57 PM.

   

 
X-Cart forums © 2001-2020