![]() |
Related Products.tpl - column versus row format
Hi - just wondering whether someone can help me modify this code please. I've got my related products showing with thumbnails, but they are appearing in one long column. I'd like to change the code so that they appear in a row (5 across the page). I'm new to HTML code, and don't know where to begin with this. Any help is appreciated.
Code:
{* $Id: related_products.tpl,v 1.7 2002/10/22 10:27:05 olga Exp $ *} |
Try this:
http://forum.x-cart.com/viewtopic.php?t=14995 For 5 columns, just change the number in this line of code from 3 to 5: Code:
{if $smarty.section.cat_num.index is div by 3} |
Thanks for pointing me in the right direction. I've now got the code above, but there is quite a lot of white space between the Product Name and the thumbnail. How do I close the gap slightly and move the Product Name closer to the thumbnail image?
Thanks. Code:
{* $Id: related_products.tpl,v 1.7.6.1 2004/12/06 svowl Exp $ *} |
Remove one of the two
tags at the end of the code for the product image. |
Brilliant - thanks!
|
All times are GMT -8. The time now is 08:00 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.