![]() |
2-3 products per row viewing in product listing
I see that the new version has the option to list 2 or 3 products per row, but I have not gotten this thing to work. Anyone get this to show properly?
Once I do get this, I would like to do the same for like "related products" section. It is in bullets now, but I would like to show thumbnail along with short description. Showing at least 3 per row. |
What exactly are you refering to? :?
|
product display
Sorry if i wasn't clear. what i'm trying to do is to display 3 products per row win the main window. default now only displays 1 per row. The page i am talking about is the product listing page with the thumbnails.
how and what page do i need to modify to reflect this? i would also like to do the same for the recommended list table. presently, it shows text only with link, but i would like to show a thumbnail 3 per row with a short description. thanks in advance. |
Great Idea
I would also like to do the same. If you have a large number of products in each category, it would be nice to see 2 or 3 per row instead of just 1.
Anyone know how to achieve this? |
[skin1]/customer/main/products.tpl
Code:
<table border=0 width=100%><tr><td> Change is div by 2 to adjust columns, I also truncated the description by 200 less charchters as well as adjusted the table size so 2-3 would fit, anyone going over that is going to get a horizontal scrollbar. hth. :wink: |
Thanks works great....
You the MAN... :D |
thanks! works fine here also
:lol:
|
Dunno why I missed this post, but I'm glad I found it :lol:
|
Quote:
Same here! In addition...if you want to make it look a little neater, you can adjust the border width. :) |
thanks ~!
Thanks boomer thats grrrreat!!!!!!!!!!!!!
|
Thanks
Flawless!!!
|
:!: Just a quick note, anyone who has setup their x-cart to run with product images NOT in the db, you'll need to modify:
Code:
{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=70 product=$products[product].product} to reference your thumbnail correctly. :wink: |
I am using this in my subcategories, i need the subcats that have icons to display in colums, and the other subcats with out icons i have them display in a row.
I have this working but when i go over 9 icons it list them in a row like the rest of the subcats. Can someone please help me with this. If it helps to see what i am doing here is the link. This is showing my subcats with icons, if you back up one subcat, it list in a row. if I add one more icon to this page it will list it in a row?? http://www.motorsport-depot.com/xcart/customer/home.php?cat=57 here is the code I am using. Code:
{if $subcategories[cat_num].categoryid eq $icons} |
OK i fuggered out that it is only letting list the same number of icons as there are top categories.
anyone know how i can write this if statement so that it will list my selected icons/subcats in the colums and if no icons are selected list the subcats in a row? {if $subcategories[cat_num].categoryid eq $icons} |
errormessage
Quote:
Hello Boome I also add youre pice of script into the products.tpl file but i get this errormessage Warning: Smarty error: unable to read template resource: "customer/main/product.tpl" in C:\www\shirtshop.nl\testroot\Smarty-2.1.1\Smarty.class.php on line 546 This will appear when i click on the products for selecting Do you what's get wrong? Regards Henk |
Hi,
I can't find the code you guys are using... mine looks like this: Code:
{* $Id: products.tpl,v 1.16 2002/09/25 10:12:05 zorg Exp $ *} What should I change to make my products list in 2 columns? Thanks, Guy |
not working for me
I can't make this work either. I'm using 3.3.1 is that the problem?
|
This works fine in 3.3.1
My code for this is: Code:
{* $Id: products.tpl,v 1.21 2002/11/19 12:57:48 alfiya Exp $ *} HTH |
I'll echo funky - I use the same logic for rows in my featured products, and it's working great.
deb |
The thing to remember with this 'is odd' thing is that the first item index is 0.
|
got it
Thanks.
|
here is the error I get
Parse error: parse error, unexpected T_ELSE in W:\www-toonarific\xcart\templates_c\%%-13\%%-1366895660\products.tpl.php on line 140 can be found at http://www.toonarific.com/xcart/customer/home.php |
This isn't needed in v3.4.x onwards.
You error comes from the smarty text being incorrect -can you paste your code? |
Code:
{* $Id: products.tpl,v 1.21 2002/11/19 12:57:48 alfiya Exp $ *} |
did you get a chance to review the code yet?
|
Gap In Listings
The code provided earlier in this thread works great for me except for anyone using Internet Explorer. For some reason there is a huge gap in the poduct listings. You can see my site at: http://www.powerbookmedic.com/xcart1/
I'm using version 3.3.5, and my products.tpl code is below. What is causing this gap? Code:
|
Compare it with mine. Mine works perfect for my needs, but is a little more simplified than yours.
Code:
{* $Id: products.tpl,v 1.21 2002/11/19 12:57:48 alfiya Exp $ and amended further by funkydunk.netand ADPBoss*} Visit http://www.adpmods.com/xcart to preview how it looks and works. NOTE: I do have some fancy inventory stuff going on with displaying out of stock conditions. Unless you desire the same effect, DO NOT copy my code verbatim. Good Luck! |
You're the man. After a couple hours, I finally got it...I found out I had one too many </td> in my code. It was screwing everything up. Thanks for the help.
-Bradley |
All times are GMT -8. The time now is 05:08 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.