| ||||||||||
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 |
#71
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
Quote:
Im glad to hear im not the only one with issues David...... I hope something can be done about this as i would like to use the reccommended and related with images as moondog posted. Unlike you David, i have yet to come across other areas of concern with the image mod...... I hope there wont be issues with this mod in the future.....
__________________
Regards, Dan X-Cart Gold Version 4.1.10 1 - One page checkout 2 - Image Generator 3 - CSDEO Pro 4 - Shop By Price 5 - Next - Previous 6 - On Sale 7 - Shop By Price 8 - Froogle & Google Base Feed 9 - Buy Together 10 - Customer Loyalty Points 11 - Customer Reward Points Customer Reward Points Referral Add-on 12 - Product Reviews 13 - Other Custom Modifications ---------------------- http://www.townsqjewelry.com/ http://www.eroticnights4u.com/ <---- Adult Oriented - Toys |
|||||||
#72
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
Thanks again MoonDog - fabulous!
__________________
Sunset X-Cart Gold v4.1.8 |
|||||||
#73
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
For anyone using the telafirma image mod and would like this on there system ive posted both the recommended and the related versions from moondog BUT with the call that will work with that image mod.
Quote:
Quote:
--------- Thanks Telafirma for the help setting this up......
__________________
Regards, Dan X-Cart Gold Version 4.1.10 1 - One page checkout 2 - Image Generator 3 - CSDEO Pro 4 - Shop By Price 5 - Next - Previous 6 - On Sale 7 - Shop By Price 8 - Froogle & Google Base Feed 9 - Buy Together 10 - Customer Loyalty Points 11 - Customer Reward Points Customer Reward Points Referral Add-on 12 - Product Reviews 13 - Other Custom Modifications ---------------------- http://www.townsqjewelry.com/ http://www.eroticnights4u.com/ <---- Adult Oriented - Toys |
|||||||
#74
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
Thanks EN4U that is exactly what I was looking for. Also thanks to everyone else including Telafirma for your hard work!
__________________
Jim Hubbell |
|||||||
#75
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
I am also using the telafirma image mod on 4.17 and just updated my related_products.tpl as per post 73 above, but none of my images show in the related products. Did I miss something??
__________________
X-Cart Gold 4.1.10, 4.1.18, 4.4.4, 4.4.5 |
|||||||
#76
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
I certainly have to thank the wonderful people helping on this forum. I am not technically qualified and I was able to make the mod very easily. It works great with version 4.1.10 as I am still setting up my store. I made a small change to MoonDog's(Super Guy) code . I made it in 4 columns. Also you can control the size of the thumbnail by changing the value image_x="80" you can find it about in the middle. His code fits it in the whole space, I just enjoy the flexibility to change according to the look and feel i want. Here is recommends.tpl that I am using
{* $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=$recommends} {if $recommends[num].productid}{assign var="tmp" value="1"}{/if} {/section} {section name=num loop=$recommends} {if %num.first%} <table border=0 width="100%"> <tr> {/if} {if $smarty.section.num.index is div by 4} </tr><tr valign="top"> {/if} <td width=25% align=center valign=top class="PListCell";> <a href="product.php?productid={$recommends[num].productid}" class="ItemsList">{$recommends[num].product}</a> <br /> <a href="product.php?productid={$recommends[num].productid}">{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x="80" product=$recommends[num].product type="T"}</a> <br /> <font class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$recommends[num].taxed_price}</font> </td> {if %num.last%} </tr></table> {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra='width="100%"'} {else} {capture name=dialog} No recommends with this product. {/capture} {/if}
__________________
Regards, Sherif Nassar |
|||||||
#77
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
Here is my related_products.tpl using the instructions in post 73 above.
Something is not working in the image url as the images are not showing at all for related products: eg: {* $Id: related_products.tpl,v 1.15 2005/12/07 14:07:32 max Exp $ *} {if $product_links ne ""} {capture name=dialog} {assign var="tmp" value="0"} {section name=cat_num loop=$product_links} {if $product_links[cat_num].productid}{assign var="tmp" value="1"}{/if} {/section} {section name=cat_num loop=$product_links} {if %cat_num.first%} <table border=0 width="100%"> <tr> {/if} {if $smarty.section.cat_num.index is div by 3} </tr><tr valign="top"> {/if} <td width=33% align=center valign=top class="PListCell" style="border: 2px dashed #cccccc;"> <a href="product.php?productid={$product_links[cat_num].productid}" class="ItemsList">{$product_links[cat_num].product}</a><br /> <a href="product.php?productid={ $product_links[cat_num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} target="_blank"{/if}> {include file="product_thumbnail.tpl" productid=$product_links[cat_num].productid image_x=$config.Appearance.thumbnail_width tmbn_url=$product_links[cat_num].tmbn_url}</a> <br /> <font class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$product_links[cat_num].price}</font> {if $product.taxes}<font class="ProductPriceVatRelated"> {include file="customer/main/taxed_price.tpl" taxes=$product.taxes}</font> </td> {/if} {if %cat_num.last%} </tr></table> {/if} {/section} {/capture} {include file="dialog.tpl" title="Related products" content=$smarty.capture.dialog extra="width=100%"} {else} {capture name=dialog} No related products. {/capture} {/if} Anyone have any suggestions
__________________
X-Cart Gold 4.1.10, 4.1.18, 4.4.4, 4.4.5 |
|||||||
#78
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
Dear All,
I have just done it for upselling links in 4 columns and it works with 4.1.10. Here is the code for related_products.tpl {* $Id: related_products.tpl,v 1.15.2.1 2007/05/02 06:05:39 max Exp $ *} {if $product_links ne ""} {capture name=related_products} {assign var="tmp" value="0"} {section name=cat_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 width="100%"> <tr> {/if} {if $smarty.section.num.index is div by 4} </tr><tr valign="top"> {/if} <td width=25% align=center valign=top class="PListCell";> <a href="product.php?productid={$product_links[num].productid}" class="ItemsList">{$product_links[num].product}</a> <br /> <a href="product.php?productid={$product_links[num].productid}">{include file="product_thumbnail.tpl" productid=$product_links[num].productid image_x=$config.Appearance.thumbnail_width product=$product_links[num].product type="T"}<br /><br />{$lng.lbl_see_details}</a> <br /><br /> <font class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$product_links[num].taxed_price}</font> </td> {if %num.last%} </tr></table> {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.related_products extra='width="100%"'} {else} {capture name=dialog} No related products with this product. {/capture} {/if}
__________________
Regards, Sherif Nassar |
|||||||
#79
|
|||||||
|
|||||||
Re: Pictures in recommends.tpl for 3 column format
Is there a way to make relatedproducts and recommended products both show at the same time?
If I have a related product entered it wil not show recommends. Thank you for any help.
__________________
Version 4.1.10 |
|||||||
#80
|
|||||||||
|
|||||||||
Re: Pictures in recommends.tpl for 3 column format
Quote:
Are you sure you have the modules configured correctly? I don't see anything in customer/product.tpl that would cause that to happen. Code:
Note - this is from a 4.1.8 version of x-cart but I don't think there is a difference between recent versions.
__________________
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|