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

3 column layout with thumbnail for Related Products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 11-24-2007, 06:05 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: 3 column layout with thumbnail for Related Products

Hi,

Can't wait to try it - but I have a very basic question - where is the tpl file stored? I can't seem to find it on my own. Thanks!
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #52  
Old 11-24-2007, 09:29 AM
  vahidnia's Avatar 
vahidnia vahidnia is offline
 

Advanced Member
  
Join Date: Aug 2007
Location: USA
Posts: 48
 

Default Re: 3 column layout with thumbnail for Related Products

First make sure this works on 4.1.9 version.
Log in to your Xcart, on the left column under 'administration' click on edit templates - you can now navigate through folders and files.
I suggest you study the manuals and this forum on how to edit templates before changing anything.
Good Luck!
__________________
X-cart gold 4.4.3
Unix
Reply With Quote
  #53  
Old 11-30-2007, 07:34 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: 3 column layout with thumbnail for Related Products

Vahidnia,

Thank you for the help. Has anyone used it in 4.1.9 yet? I tried it on my cart. The template changed in admin but not in the store. Since I don't want to mess up the cart, I did not want to make changes to config.php, which could be the reason why it did not reflect in the store. Or maybe it's just not compatible. So, before I venture out and try the config.php I think it's best if I can make sure it works with 4.1.9.

Thanks again!
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #54  
Old 12-01-2007, 06:47 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: 3 column layout with thumbnail for Related Products

Hi, I tried this code and it works but shows only the price without the title link. Can anyone tell me where to change the code so it would show the title link to the product instead of the price?

Thanks, everyone, this s just what I have wanted for a long time!

{* $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" cellspacing="0" width="100%">
<tr>
{/if}
{if $smarty.section.cat_num.index is div by 3}
</tr><tr>
{/if}

<td align="center">

<div class="relatedsidebox">
<div class="relatedboxhead"><p>

&nbsp;

</p></div>
<div class="relatedboxbody">

<a style="text-decoration: none;" 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 product=$product_links[cat_num].product type="T"}</a>
<br>

<a style="color: #FFFFFF" href="product.php?productid={ $product_links[cat_num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} target="_blank"{/if}>
<b>{ $product_links[cat_num].product}</b>
</a>
<br>

<font class="ProductPriceRelated">{include file="currency.tpl" value=$product_links[cat_num].taxed_price}</font>
{if $product.taxes}<font class="ProductPriceVatRelated">
{include file="customer/main/taxed_price.tpl"
taxes=$product.taxes}</font>
{/if}
</div>
</div>
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #55  
Old 12-02-2007, 11:33 AM
 
JJO JJO is offline
 

Newbie
  
Join Date: Nov 2007
Posts: 4
 

Default Re: 3 column layout with thumbnail for Related Products

Acquamarina,
Did you get it to work in 4.1.9?
I have been trying to get it to work, but without any luck.

JJ
__________________
Version 4.1.9
Reply With Quote
  #56  
Old 12-22-2007, 09:12 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: 3 column layout with thumbnail for Related Products

Hi, JJ

It did work, but there is no title to the the item, only the price, so I reversed it back to the default display. Maybe someone will be able to let us know how to do it. I have no clue. I would buy a module and have it installed if there was one.

Happy Holidays!

Vera
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #57  
Old 12-30-2007, 12:19 AM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: 3 column layout with thumbnail for Related Products

Hi Acquamarina,

Quote:

...there is no title to the the item, only the price
Just replace your skin1/modules/Upselling_Products/related_products.tpl file with the file below. It works in v4.1.8 and v4.1.9

Code:
{* $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 product=$product_links[cat_num].product type="T"}</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}

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote
  #58  
Old 12-31-2007, 08:57 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: 3 column layout with thumbnail for Related Products

To get rid of the dashed border around the products you'll have to edit this line:

Code:
<td width=33% align=center valign=top class="PListCell" style="border: 2px dashed #cccccc;">
and change it to this:
Code:
<td width=33% align=center valign=top class="PListCell">
- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote
  #59  
Old 01-01-2008, 05:56 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: 3 column layout with thumbnail for Related Products

MoonDog,

I works like a charm! Thank you so much - this is the first time ever I edited a template. Great way to start the new Year - I'm very grateful!

Can it be used for Recommended products too?

I can't tell you how long I have wanted to do this. I was even able to customize the title without using the Languages edit. Thanks and a Wonderful New Year to you!
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #60  
Old 01-01-2008, 10:30 AM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: 3 column layout with thumbnail for Related Products

Hi Aquamarina,

I'm glad you got it working and a Happy New Year to you too.
Quote:
Can it be used for Recommended products too?
There is a seperate thread dealing with that mod called Pictures in recommends.tpl for 3 column format and that will explain how you can modify your templates to achieve that effect.
If you have any problems just let me know.

- MoonDog -
__________________
X-CART Gold v4.1.8
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 12:48 AM.

   

 
X-Cart forums © 2001-2020