| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Thumbnails in related_products.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I did several searches and found a lot of mods that add the thumbnail and short description to the related_products.tpl, but can't get any of them to work on 4.2.
Anybody have a good way of doing this?
__________________
Joe Holley 4.2 |
|||||||
#2
|
|||||||
|
|||||||
![]() Looks like no one else has worked this one out yet either.
__________________
Joe Holley 4.2 |
|||||||
#3
|
|||||||
|
|||||||
![]() I have been playing with this some, and I got the thumbnails to show, just have to work on having them display horizontally. I am borrowing some code and made a few changes from skin1/modules/Bestsellers/menu_bestseller.tpl .
In the file /skin1/modules/Upselling_Products/related_products.tpl replace: <a href="product.php?productid={$p.productid}"{if $config.Upselling_Products.upselling_new_window eq 'Y'} target="_blank"{/if}>{$p.product|amp}</a> with: <a href="product.php?productid={$p.productid}&cat={$c at}&&bestseller=Y">{include file="product_thumbnail.tpl" productid=$p.productid product=$bestseller.product tmbn_url=$bestseller.tmbn_url}</a> it's a start...
__________________
X-cart Version 4.2.2 |
|||||||
#4
|
|||||||
|
|||||||
![]() Quote:
Go to http://forum.x-cart.com/showthread.php?t=10773&page=3 where Balinor has done for ver 4.0.18. |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
I've already looked at the one. It doesn't work on 4.2.
__________________
Joe Holley 4.2 |
|||||||
#6
|
|||||||
|
|||||||
![]() /bump for hoping someone can figure out how to display the thumbnails horizontally, I haven't had any luck
![]()
__________________
X-cart Version 4.2.2 |
|||||||
#7
|
|||||||
|
|||||||
![]() still noone?
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql) Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server Modules : X-Offer & X-Aom & One page checkout Product tabs & Product downloads & many more |
|||||||
#8
|
|||||||
|
|||||||
![]() Quote:
Hi, I think the solution is to change the location of <tr> and </tr>. So instead of <tr> after {foreach} you should place it before {foreach}. This is the code I use in related_products.tpl and it works for me: <tr> {foreach from=$product_links item=p} <td><a href="product.php?productid={$p.productid}&cat={$c at}&&bestseller=Y">{include file="product_thumbnail.tpl" productid=$p.productid product=$bestseller.product tmbn_url=$bestseller.tmbn_url}<br />{$p.product|amp}</a></td> {/foreach} </tr> Good luck.
__________________
X-Cart Version 4.4 |
|||||||
#9
|
|||||||
|
|||||||
![]() Bouma
Thanks!!! worked perfect
__________________
X-cart Version 4.2.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|