![]() |
Re: Pictures in recommends.tpl for 3 column format
hi i wish i could hel;p others like your goodselves
just to say a big thank you for pips helping out here |
Re: Pictures in recommends.tpl for 3 column format
I think somebody asked already about displaying price in recommended products. I tried to simply add SQL statement to pull price but it keeps giving me an sql error. Don't know what I am doing wrong. Did anyone figured it out?
|
Re: Pictures in recommends.tpl for 3 column format
I have installed this mod on 4.1.7 and seems to sometimes work but most of the time the dialog box empty can anyone help me get this one working correctly? here is the code I put in related_product.tpl is there any other I need to add else?
{* $Id: recommends.tpl,v 1.9 2006/03/21 07:17:18 svowl Exp $ *} {if $recommends} {capture name=recommends} {assign var="tmp" value="0"} {section name=num loop=$product_links} {if $$product_links[num].productid}{assign var="tmp" value="1"}{/if} {/section} {section name=num loop=$product_links} { if %num.first% } <table border=0 cellspacing=5 width=100%> {/if} {if $smarty.section.num.index is div by 3} </tr><tr valign="top"> {/if} <td width="250" align="center"> {include file="product_thumbnail.tpl" productid=$product_links[num].productid image_x=100 product=$product_links[num].product tmbn_url=$product_links[num].tmbn_url} <a href="product.php?productid={ $product_links[num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} target="_blank"{/if}> <BR> <span class="ProductTitle">{ $product_links[num].product|escape}</span><br> </a></td> { if %num.last% } </tr></table> {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.recommends extra='width="100%"'} {else} {capture name=dialog} No related products. {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.recommends extra='width="100%"'} {/if} |
Re: Pictures in recommends.tpl for 3 column format
Here's a copy/paste that is working in 4.1.7
Code:
{* $Id: related_products.tpl,v 1.15 2005/12/07 14:07:32 max Exp $ *} |
Re: Pictures in recommends.tpl for 3 column format
Quote:
That would be great, but I haven't seen it done. |
Re: Pictures in recommends.tpl for 3 column format
Quote:
Um... this mod is for Recommended Products. It looks like you are confusing it with Related products (also known as Upselling Products. They are two different Modules. |
Re: Pictures in recommends.tpl for 3 column format
Did somebody succeed to display prices of recommended products under their thumbnail?
In terms of usability is absolutely necessary, as nobody will be clicking images to check prices. |
Re: Pictures in recommends.tpl for 3 column format
Quote:
Awesome! Thank you and it is working in 4.1.8 as well but I noticed it is missing the correct alt tags for the images. |
Re: Pictures in recommends.tpl for 3 column format
Thanks from a newbie. I've leaned two fanastic things from this thread:
1. I now have pics in my recommends! :D 2. Read threads from back to front to get the latest mod code. hehehe |
Re: Pictures in recommends.tpl for 3 column format
This was getting all a bit complicated for me. I just wanted 3 in a row with thums and prices.
Being a newbie I gleaned a lot from this previous messages and decided, bravely to have a go myself. Here's what I did to recommends.tpl {* $Id: recommends.tpl,v 1.9 2006/03/21 07:17:18 svowl Exp $ *} {if $recommends} {capture name=recommends} <table border=0 width=100%> <tr> {section name=num loop=3} <td width=33% align=center valign=top> <a href="product.php?productid={$recommends[num].productid}" class="ItemsList">{$recommends[num].product}</a></font> <br> <a href="product.php?productid={$recommends[num].productid}">{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}</a> <br> <font class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$recommends[num].taxed_price}</font><font class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</font> </td> {/section} </tr> </table> {/capture} {include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra='width="100%"'} {/if} It works for me. All the best Ade |
All times are GMT -8. The time now is 07:18 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.