Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Pictures in recommends.tpl for 3 column format

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #71  
Old 04-28-2008, 11:21 PM
 
EN4U EN4U is offline
 

eXpert
  
Join Date: Feb 2008
Location: AZ
Posts: 379
 

Default Re: Pictures in recommends.tpl for 3 column format

Quote:
Originally Posted by mismouss
Hello,

I have exactly the same problem. I use also the Telafirma Images Mod.

This mod causes me problems for each other module which uses the images. For example, module RSS Export of Magneticone which uses the initial format of the images. I have enormous images; I cannot thus generate a Rss flow. If I do not find script returning to the images (cached directory) create by the module of Telafirma, I give up this module because I have many other modules using the images.

I should not be and would not be the only one to have this problem. Telafirma must find a solution.

David

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
Reply With Quote
  #72  
Old 04-30-2008, 11:31 PM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Pictures in recommends.tpl for 3 column format

Thanks again MoonDog - fabulous!
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #73  
Old 05-01-2008, 03:28 AM
 
EN4U EN4U is offline
 

eXpert
  
Join Date: Feb 2008
Location: AZ
Posts: 379
 

Default 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:

{* $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}



Quote:

{* $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 3}
</tr><tr valign="top">
{/if}
<td width=33% 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=$config.Appearance.thumbnail_width tmbn_url=$recommends[num].tmbn_url}</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}



--------- 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
Reply With Quote
  #74  
Old 05-19-2008, 07:00 AM
 
hubbell hubbell is offline
 

Newbie
  
Join Date: Apr 2008
Posts: 3
 

Default 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
Reply With Quote
  #75  
Old 05-24-2008, 07:26 AM
 
paul@dimoda.com.au paul@dimoda.com.au is offline
 

Senior Member
  
Join Date: Aug 2007
Location: Perth, Australia
Posts: 148
 

Default 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
Reply With Quote
  #76  
Old 06-03-2008, 05:34 PM
 
Sherif Nassar Sherif Nassar is offline
 

Member
  
Join Date: Apr 2008
Posts: 12
 

Default 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
Reply With Quote
  #77  
Old 06-03-2008, 06:42 PM
 
paul@dimoda.com.au paul@dimoda.com.au is offline
 

Senior Member
  
Join Date: Aug 2007
Location: Perth, Australia
Posts: 148
 

Post 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
Reply With Quote
  #78  
Old 06-09-2008, 04:07 PM
 
Sherif Nassar Sherif Nassar is offline
 

Member
  
Join Date: Apr 2008
Posts: 12
 

Default 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
Reply With Quote
  #79  
Old 06-30-2008, 07:46 PM
 
aimeea aimeea is offline
 

Advanced Member
  
Join Date: May 2008
Posts: 33
 

Default 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
Reply With Quote
  #80  
Old 07-06-2008, 06:58 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Pictures in recommends.tpl for 3 column format

Quote:
Originally Posted by aimeea
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.

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:
{if $active_modules.Upselling_Products ne ""} <br /> {include file="modules/Upselling_Products/related_products.tpl" } {/if} {if $config.Appearance.send_to_friend_enabled eq 'Y'} <br /> {include file="customer/main/send_to_friend.tpl" } {/if} {if $active_modules.Recommended_Products ne ""} <br /> {include file="modules/Recommended_Products/recommends.tpl" } {/if}

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:44 AM.

   

 
X-Cart forums © 2001-2020