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
  #81  
Old 10-20-2008, 10:17 AM
 
modibaba modibaba is offline
 

Senior Member
  
Join Date: Mar 2008
Location: UK
Posts: 108
 

Default 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
__________________
X-Cart DB Version: 4.1.9 GOLD

Addons:
Amazon skin;
Fancy Categories;
Magnifier (enabled);
Survey (enabled);
CDSEO Pro;
Category SEO Map;
One Page Checkout;
Greet Visitor;
On_Sale;
Reply With Quote
  #82  
Old 11-05-2008, 04:47 PM
 
fafbr fafbr is offline
 

Advanced Member
  
Join Date: Oct 2008
Location: Brasilia-Brazil
Posts: 32
 

Default 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
__________________
Creative Pixels Designs
________________________
X cart Pro _Version: 4.1.12
Module: download expander
Apache; PHP 5.2.4
Reply With Quote
  #83  
Old 11-30-2008, 02:37 PM
 
cbostard cbostard is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: USA/ New Jersey
Posts: 47
 

Default 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:
{* $Id: related_products.tpl,v 1.15 2005/12/07 14:07:32 max 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}
__________________
Version 4.3.1
fancy catagories (enabled)
dynamic image generator 4.1(enabled)
tabbed menu buttons
Cdseo Pro (enabled)
anonymous cart mod (enabled )
skin swap "mod doesnt work well for me"
x-magnafier
xcart Gift registry
Reply With Quote
  #84  
Old 12-01-2008, 12:27 AM
 
modibaba modibaba is offline
 

Senior Member
  
Join Date: Mar 2008
Location: UK
Posts: 108
 

Default 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
__________________
X-Cart DB Version: 4.1.9 GOLD

Addons:
Amazon skin;
Fancy Categories;
Magnifier (enabled);
Survey (enabled);
CDSEO Pro;
Category SEO Map;
One Page Checkout;
Greet Visitor;
On_Sale;
Reply With Quote
  #85  
Old 01-20-2009, 07:15 AM
 
Sherif Nassar Sherif Nassar is offline
 

Member
  
Join Date: Apr 2008
Posts: 12
 

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

Hi,

Anyone has an idea how to implement it in v 4.2?
Thanks
__________________
Regards,

Sherif Nassar
Reply With Quote
  #86  
Old 01-29-2009, 02:19 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

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

Quote:
Originally Posted by Sherif Nassar
Hi,

Anyone has an idea how to implement it in v 4.2?
Thanks

Try to use this modification for file "skin1\modules\Recommended_Products\recommends.tpl " but first - backup original file.
Reply With Quote
  #87  
Old 03-08-2009, 04:24 PM
  seaCOAST's Avatar 
seaCOAST seaCOAST is offline
 

X-Adept
  
Join Date: Oct 2002
Location: New Hampshire
Posts: 569
 

Default 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
__________________
Xcart V4.5.5 Gold
seaCOAST
"Live FREE or DIE!"
Reply With Quote
  #88  
Old 03-10-2009, 07:58 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default 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.
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #89  
Old 03-11-2009, 12:17 AM
  seaCOAST's Avatar 
seaCOAST seaCOAST is offline
 

X-Adept
  
Join Date: Oct 2002
Location: New Hampshire
Posts: 569
 

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

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

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 $ *} {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="customer/dialog.tpl" title=$lng.txt_recommends_comment content=$smarty.capture.recommends extra='width="100%"'} {else} {capture name=dialog} No recommends with this product. {/capture} {/if}
__________________
Xcart V4.5.5 Gold
seaCOAST
"Live FREE or DIE!"
Reply With Quote
  #90  
Old 03-16-2009, 07:18 AM
  LoveHurts's Avatar 
LoveHurts LoveHurts is offline
 

Advanced Member
  
Join Date: Mar 2007
Posts: 39
 

Default 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.
__________________
Core version: 5.3.4.4
PHP: 5.6
Web server: Apache
---stll running a---
x-cart PRO 4.1.6 [unix] updated to 4.1.9
Belgium
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 03:49 PM.

   

 
X-Cart forums © 2001-2020