| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Pictures in recommends.tpl for 3 column format | ||||
|
|
Thread Tools | Search this Thread |
#91
|
|||||||
|
|||||||
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
__________________
John Harwood v3.5.14, v4.0.17, v4.1.8 |
|||||||
#92
|
|||||||
|
|||||||
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. |
|||||||
#93
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
Thanks
This worked great for me in 4.1.11 Dave |
|||||||
#94
|
|||||||
|
|||||||
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
__________________
My X-cart version 4.1.11 GOLD |
|||||||
#95
|
|||||||
|
|||||||
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}
__________________
My X-cart version 4.1.11 GOLD |
|||||||
#96
|
|||||||
|
|||||||
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
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#97
|
|||||||||
|
|||||||||
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 |
|||||||||
#98
|
|||||||||
|
|||||||||
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:
__________________
Dedicated Server provided by EWD Hosting X-Cart version 4.1.12 PHP 5.3.2 MySQL server 5.0.87-community Operation system Linux Perl 5.008008 dogbytecomputer.com |
|||||||||
|
|||
X-Cart forums © 2001-2020
|