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

Help needed voor related products mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-19-2006, 03:57 AM
 
mlowrey mlowrey is offline
 

Member
  
Join Date: Mar 2005
Posts: 28
 

Default Help needed voor related products mod

Hi,

I have the following mod voor modules/relatedproducts.

{if $product_links ne ""}
{capture name=dialog}
<center>
<TABLE width="185" border="0" cellspacing="3">
{section name=cat_num loop=$product_links max=3}<TR>

<TD width="100%" align="center"><a href="product.php?productid={ $product_links[cat_num].productid }">
{include file="product_thumbnail.tpl" productid=$product_links[cat_num].productid image_x=80 product=$product_links[cat_num].productid}
</a></TD>

<TD width="100%"><A href="product.php?productid={ $product_links[cat_num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} {/if}>
{ $product_links[cat_num].product}
</A>


<FONT class="ProductPrice">Onze Prijs:
{include file="currency.tpl" value=$product_links[cat_num].price}</font>

</TD>
</TR>
<tr>
<td colspan="2">
</td>
</tr>
{/section}
</TABLE> </center>
{/capture}
{include file="dialog.tpl" title="Bijpassende produkten" content=$smarty.capture.dialog extra="width=100%"}
{/if}


That willl look like this:

http://www.projectieland.nl/tmp/old.JPG

BUT I WOULD LIKE IT LIKE THIS:

http://www.projectieland.nl/tmp/new.JPG

Can someone plesae help me by correcting the above code so that it will look like thesecond ( above picture ) ??? THX

THX
__________________
4.0.16 stable and testing 4.10 rc4 - ALL THE QUESTIONS ARE FOR 4.1
Reply With Quote
  #2  
Old 06-19-2006, 04:02 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

Check this tread:

3 column layout with thumbnail for Related Products
http://forum.x-cart.com/viewtopic.php?t=14995

That one is already in 3 colums. Take that code and you only have to add your title and price in that code and you're done.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #3  
Old 06-19-2006, 07:54 AM
  Alltribes's Avatar 
Alltribes Alltribes is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 192
 

Default

Try this: I didn't test it, but it should work.

Code:
{if $product_links ne ""} {capture name=dialog} <center> <TABLE width="185" border="0" cellspacing="3"> <tr> {section name=cat_num loop=$product_links max=3} <td> <TR> <TD width="100%" align="center"><a href="product.php?productid={ $product_links[cat_num].productid }"> {include file="product_thumbnail.tpl" productid=$product_links[cat_num].productid image_x=80 product=$product_links[cat_num].productid} </a></TD> <TD width="100%"><A href="product.php?productid={ $product_links[cat_num].productid }"{if $config.Modules.upselling_new_window eq 'Y'} {/if}> { $product_links[cat_num].product} </A> <FONT class="ProductPrice">Onze Prijs: {include file="currency.tpl" value=$product_links[cat_num].price}</font> </TD> </TR> <tr> <td colspan="2"> </td> </tr> </td> {/section} </tr> </TABLE> </center> {/capture} {include file="dialog.tpl" title="Bijpassende produkten" content=$smarty.capture.dialog extra="width=100%"} {/if}
__________________
Alltribes.com
Native American Jewelry
Pottery, Baskets, Kachinas & More

X-cart Gold Version 4.0.17 Live
PHP 5.2.6
MySQL 4.1.25
(mt)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:04 PM.

   

 
X-Cart forums © 2001-2020