list sub products horizontally

General ShopSite user discussion

list sub products horizontally

Postby jackie » Wed Sep 23, 2009 7:58 am

Hi,

I am trying to list my sub products in 4 columns horizontally, however, so far I have only found the loop code to list them vertically. Is there a way to set the number of columns for sub products like there is for regular products.

Here is the sub product loop I am referring to:

[-- IF PRODUCT.Subproduct --]
[-- LOOP SUBPRODUCTS --]
[-- SUBPRODUCTS --]
[-- END_LOOP SUBPRODUCTS --]
[-- END_IF --]

Thanks.
jb
jackie
 
Posts: 31
Joined: Mon Mar 12, 2007 12:41 pm

Postby BFChris » Wed Sep 23, 2009 8:30 am

Can you be more specific about how you want the information arranged?
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Postby jackie » Wed Sep 23, 2009 8:36 am

I would like the loop to appear with a layout like this.

<table>

<tr>
<td>
sub product info1
</td>

<td>
sub product info2
</td>

<td>
sub product info3
</td>

<td>
sub product info4
</td>

</tr>

</table>

Here is what I am getting right now with the loop that I Don't want

<table>

<tr>
<td>
sub product info1
</td>
</tr>
<tr>
<td>
sub product info2
</td>
</tr>
<tr>
<td>
sub product info3
</td>
</tr>
<tr>
<td>
sub product info4
</td>

</tr>

</table>
jb
jackie
 
Posts: 31
Joined: Mon Mar 12, 2007 12:41 pm

Postby BFChris » Wed Sep 23, 2009 9:32 am

Did you try:

Code: Select all
[-- LOOP SUBPRODUCTS 4 --]
[-- SUBPRODUCTS --]
[-- END_LOOP SUBPRODUCTS --]


Specifying the number of columns to make?
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Postby jackie » Wed Sep 23, 2009 11:01 am

That was it

Thanks
jb
jackie
 
Posts: 31
Joined: Mon Mar 12, 2007 12:41 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 121 guests