![]() |
Re: Pictures in recommends.tpl for 3 column format
Any idea on how can I make the number of recomended products to be 9, or 12 so i fill in the gaps, thanks
|
Re: Pictures in recommends.tpl for 3 column format
Thank you MoonDog
I am gratefull for the code on post #62 It works fine in 4.1.11 version |
Re: Pictures in recommends.tpl for 3 column format
Thanks everyone & MoonDog Im using ver. 4.1.11 with telafirma dynamic image gen, and appears and works great, but can you tell me how or why I have 2 recommened products list the top or 1st one shows images,name,price and the 2nd one below on page is just the original generic list. would be great to just have the second list deleted.
this is the code i have in modules/upsell_products/related_products.tpl Quote:
|
Re: Pictures in recommends.tpl for 3 column format
hi cbostard
where did u get the dynamic image generator from please?, and if it is free can u send me a copy please? thanks |
Re: Pictures in recommends.tpl for 3 column format
Hi,
Anyone has an idea how to implement it in v 4.2? Thanks |
Re: Pictures in recommends.tpl for 3 column format
Quote:
Try to use this modification for file "skin1\modules\Recommended_Products\recommends.tpl " but first - backup original file. |
Re: Pictures in recommends.tpl for 3 column format
Works like a charm in 4.2.
The only error I found was the reference to dialog.tpl near the end...should be customer/dialog.tpl |
Re: Pictures in recommends.tpl for 3 column format
How did you get this to work in 4.2, when some of the classes in the css are not defined. Also if you did get it working, what example did you use? I would like to have 3 products seperated equally show up in the "recommended products" area.
Thanks In Advance. |
Re: Pictures in recommends.tpl for 3 column format
Quote:
This is the code exactly how I have it running. 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
Thanks for coding.
For recommended products : how do i exclude products that are not in stock?? thx in advance. |
Re: Pictures in recommends.tpl for 3 column format
Is it a big deal to include specific extra field data in the recommended items display? What would be the format to call extra fields for v4.1.12?
Thanks XCart 4.1.12 |
Re: Pictures in recommends.tpl for 3 column format
Quote:
Thanks balinor for such a fine code.Is it possible to display all images in a revolving way in Recommended products list option? Thanks to all. |
Re: Pictures in recommends.tpl for 3 column format
Thanks
This worked great for me in 4.1.11 Dave |
Re: Pictures in recommends.tpl for 3 column format
Hello,
Maybe someone can help how to do correct "Market price", because with "Our price" all is ok, but "Market price" for all products is the same and this price is detail product price. If you can't understand, i think screenshot will helps. Thank you so much! As you can see my version is 4.1.11 http://img44.imageshack.us/img44/1381/33404334.jpg |
Re: Pictures in recommends.tpl for 3 column format
MY code:
{* $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> <div style=" margin-bottom:5px;"><a href="product.php?productid={$recommends[num].productid}" class="ItemsList2">{$recommends[num].product}</a></font></div> <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> <div style=" margin-top:5px;"> <span >Rinkos kaina:</span> <s><span>{include file="currency.tpl" value=$product.taxed_price}</span></s> <span class="market-price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</span> </div> <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} |
Re: Pictures in recommends.tpl for 3 column format
You've mixed products.tpl, product.tpl and recommends.tpl variables. In recommends.tpl the product information for the recommended products list is in $recommends, not in $products or $product. To refer to the current product in the loop you should be using $recommends[num]. You need to change several things:
$products[product].product to $recommends[num].product $products[product].tmbn_url to $recommends[num].tmbn_url $products[product].taxed_price to $recommends[num].taxed_price And finally the one which will actually fix the problem you are asking about: $product.taxed_price to $recommends[num].list_price |
Re: Pictures in recommends.tpl for 3 column format
I was playing around with this for version 4.3
While it worked ok I was getting the word "array" for the alt on the product images. I did a little bit of altering and came up with a code that works just fine. Code:
If you want the product images to be larger just change the image_x=75 to whatever size you want. Also if you want to go to four wide change the div number to 4 and the width to 25% and for two wide switch div number to 2 and the width to 50% I hope this is of some use to those playing around with 4.3 |
Re: Pictures in recommends.tpl for 3 column format
I used Balinor's code in 4.1.12 but I made it so it will verify as XHTML 1.0 Transitional
Code:
{if $recommends} |
All times are GMT -8. The time now is 05:36 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.