View Single Post
  #98  
Old 01-15-2008, 09:36 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: Dynamic Images for X-Cart version 4.1.x

Open the file /skin1/modules/Recommended_Products/recommends.tpl anf find the line:

Code:
{include file="product_thumbnail.tpl" productid=$recommends[num].productid alt=$recommends[num].product image_x=$config.Appearance.recommends_thumbnail_width tmbn_url=$recommends[num].tmbn_url}

Change this to:

Code:
{if $active_modules.Dynamic_Images} {thumb file=$recommends[num].tmbn_url width=$config.Appearance.recommends_thumbnail_width class=Thumbnail alt=$recommends[num].product} {else} {include file="product_thumbnail.tpl" productid=$recommends[num].productid alt=$recommends[num].product image_x=$config.Appearance.recommends_thumbnail_width tmbn_url=$recommends[num].tmbn_url} {/if}

This will call the thumbnail plugin directly if you have the Dynamic Image mod installed and enabled, and use the previous code if it is disabled. Then it will respect the setting within Admin for the image with for the Recommended Products when the image mod is active.



Quote:
Originally Posted by scottmotte
TelaFirma, the mod works great - except for one drawback. I use the recommended products on every page - including product listings, and the home page. When on these pages, it does not resize to the thumbnail sized image which I have set at 80px. (instead it stays resized to 150px, which I have set as the product listing image size)

Is there a way to directly call just the thumbnail or trick the recommended products into thinking it is on a single product page?

Thanks in advance.
Reply With Quote