For anyone wishing to use the Dynamic Image Generator module with Upselling Links.......in 4.1.x - I am using 3 images across....this is the code in /modules/Upselling_Products/related_products.tpl:
Code:
{if $product_links ne ""}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=cat_num loop=$product_links}
{if $product_links[cat_num].productid}{assign var="tmp" value="1"}{/if}
{/section}
{section name=cat_num loop=$product_links}
{if %cat_num.first%}
<table border=0 cellspacing="6" width="100%">
<tr>
{/if}
{if $smarty.section.cat_num.index is div by 3}
</tr><tr valign="top">
{/if}
<td width=33%>
<table align="center" cellpadding="0" cellspacing="0" valign="top">
<tr>
<td>
<a href="product.php?productid={ $product_links[cat_num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} target="_blank"{/if}>
{thumb file=$product_links[cat_num].tmbn_url width=$config.Dynamic_Images.di_bestseller_image_width class=NoBorder alt=$product_links.product}
</a>
</td>
</tr>
</table>
<br />
<div align="center">
<a href="product.php?productid={$product_links[cat_num].productid}" class="ItemsList">{$product_links[cat_num].product}</a>
</div>
</td>
{if %cat_num.last%}
</tr></table>
{/if}
{/section}
{/capture}
{include file="dialog.tpl" title="Accessories" content=$smarty.capture.dialog extra="width=100%"}
{else}
{capture name=dialog}
No related products.
{/capture}
{/if}
If you want a different width thumb....change this:
Code:
{thumb file=$product_links[cat_num].tmbn_url width=$config.Dynamic_Images.di_bestseller_image_width class=NoBorder alt=$product_links.product}
Code:
{thumb file=$product_links[cat_num].tmbn_url width=50 class=NoBorder alt=$product_links.product}
Works for me on 4.1.9 site.
Louise
Studio 57 Designs