View Single Post
  #14  
Old 03-26-2009, 04:08 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: How to change Recommendslist?

Quote:
Originally Posted by slimmedia
Again, it may need a little bit of tweaking depending upon your version of x-cart, but something like this should work:

In 'modules/Recommended_Products/recommends.tpl' replace the lines from {section} to {/section} with:
Code:
<TABLE BORDER="0" WIDTH="100%"><TR> {section name=num loop=$recommends} <TD VALIGN="TOP" WIDTH=33%> <A HREF="product.php?productid={$recommends[num].productid}&cat={$cat}">{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x=$config.Appearance.thumbnail_width product=$recommends[num].product tmbn_url=$products[product].tmbn_url} <font class="ProductTitle">{$recommends[num].product}</FONT></TD> {/section} </TR></TABLE>

For version 3.4.3, the whole file would look like this:

Code:
{if $recommends} {capture name=recommends} <TABLE BORDER="0" WIDTH="100%"><TR> {section name=num loop=$recommends} <TD VALIGN="TOP" WIDTH=33%> <A HREF="product.php?productid={$recommends[num].productid}&cat={$cat}">{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x=$config.Appearance.thumbnail_width product=$recommends[num].product tmbn_url=$products[product].tmbn_url} <font class="ProductTitle">{$recommends[num].product}</FONT></TD> {/section} </TR></TABLE> {/capture} {include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra="width=100%"} {/if}

Thanks slimmedia for fine codes. Now can those images been possible to see in a slide show or in a rotating way? Also is it possible to see small images(just for indicative only)?Please help me.
__________________
4.6.1 Platinum


Reply With Quote