View Single Post
  #1  
Old 08-10-2006, 05:38 AM
 
Lee Lee is offline
 

Advanced Member
  
Join Date: Dec 2002
Posts: 95
 

Default Buy more Pay Less feature

Afternoon all,

We have a 5plus price feature on our site, which currently only displays on the actual product detail page. As we are expanding our 5plus price to cover all our products I want to display this feature on the products.tpl listing.

Currently on product.tpl I have
{if $variants eq ''}
{include file="customer/main/product_prices.tpl"}
{/if}

This file contains the following loop within a {if $product_wholesale ne ""}

Pay only <FONT CLASS="buymore">{section name=wi loop=$product_wholesale}{include file="currency.tpl" value=$product_wholesale[wi].price}{/section}</FONT> each when you buy <FONT CLASS="buymore">{section name=wi loop=$product_wholesale}{$product_wholesale[wi].quantity}{if $smarty.section.wi.last}{else}-{$product_wholesale[wi].next_quantity}{/if}{/section}</FONT> or more!

Within the products tpl page I have a call to a duplicated version of product_prices.tpl (with a _des in the title). I cannot get this to display unless I remove the if statement, and then when it does display I get no prices. What should I be looking to change, either the initial if statement or the Pay only loop above??

Thanks in advance!
__________________
Lee

X-Cart 4.0.14 - heavily modified! (Linux)
www.lasertechgroup.com/uk
Reply With Quote