View Full Version : How to get more than 1 product per row.
marc-man
23-Oct-2003, 11:27 AM
How can I make more than 1 product appear per row? Ideally I want 3 per row. I have played around with the Act_ProductLine template and managed to get all products onto 1 row by deleting the <TR> tags but I need a new row to start every 3 products.
Any suggestions?
Marc
Josie
23-Oct-2003, 12:15 PM
I'd get around this using custom variables - if you set up a customvar called TABLE_TAGS or something, then for every third product in your section add the customvar as <TR></TR> and leave the other two without it. Then in your template add CUSTOMVAR:TABLE_TAGS after the </TD> - it won't do anything to the two products without the customvar but will add the tr's for the ones you want.
The downside of doing this is that if you add/delete or move around any products within the section, you'll have to go through it again making sure that every third one has this customvar and the others don't have it.
I haven't tested it, this is just an idea. If anyone can think of a better way then I will bow to their superior knowledge.
Josie :)
Josie
23-Oct-2003, 12:16 PM
uh - duh! the customvar should be </TR><TR> not what I said above <TR></TR> obviously!
marc-man
23-Oct-2003, 12:41 PM
Great idea - works well. Luckily I only have 6 products for this particular page so there wont be too much re-editing each time I change products etc.
Thanks again
Marc
Mike Hughes
23-Oct-2003, 02:23 PM
There's a solution to this posted in the knowledge base;
click here (http://knowledge.actinic.com/users/kadmin/acatalog/v6_Product_Details.html#a365) for details.
Mike
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.