| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Pictures in recommends.tpl for 3 column format | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#51
|
|||||||||
|
|||||||||
![]() hi i wish i could hel;p others like your goodselves
just to say a big thank you for pips helping out here
__________________
Regards Maxking SERVER: Microsoft-IIS/5.0 MYSQL Server: 4.0.18-NT PERL: 5.006001 PHP: 4.3.6 X-CART pro: 4.3 X-AOM: 4..3 X-RMA: 4..3X-FancyCategories 4.3 Skin: Own Design Marketing Manager Professional 3.0 Bundle |
|||||||||
#52
|
|||||||
|
|||||||
![]() 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?
__________________
X-Cart version 4.0.19 |
|||||||
#53
|
|||||||
|
|||||||
![]() 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}
__________________
Xcart 4.1.17 |
|||||||
#54
|
|||||||||
|
|||||||||
![]() Here's a copy/paste that is working in 4.1.7
Code:
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#55
|
|||||||||
|
|||||||||
![]() Quote:
That would be great, but I haven't seen it done.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#56
|
|||||||||
|
|||||||||
![]() 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.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#57
|
|||||||
|
|||||||
![]() 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. |
|||||||
#58
|
|||||||||
|
|||||||||
![]() 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.
__________________
X-Cart 4.7.8 Pro php 7.x |
|||||||||
#59
|
|||||||
|
|||||||
![]() Thanks from a newbie. I've leaned two fanastic things from this thread:
1. I now have pics in my recommends! ![]() 2. Read threads from back to front to get the latest mod code. hehehe
__________________
X-Cart Gold 4.2.3 |
|||||||
#60
|
|||||||
|
|||||||
![]() 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 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|