View Single Post
  #2  
Old 04-22-2005, 08:22 AM
 
gbanse gbanse is offline
 

Advanced Member
  
Join Date: Mar 2005
Location: Vermont, USA
Posts: 53
 

Default

I've taken the base code for producing the upsell links and moved it to within the products.tpl file like so:

Quote:
{capture name=upsell}
{section name=upsell_num loop=$product_links}
<A href="product.php?productid={ $product_links[upsell_num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} target="_blank"{/if}>
{$product_links[upsell_num].product}
</A>
{/section}
{/capture}
{$smarty.capture.upsell}

It seems that there is no array $product_links - or at least it's not outputting correctly. I'm not sure if this will require writing some custom PHP function or if it's a simple matter of finding the right syntax for the above.
__________________
Gregg
XC v4.0.12 (13 and 17) Gold
Reply With Quote