Grouping products in pages using tables

General ShopSite user discussion

Grouping products in pages using tables

Postby circlekstrings » Fri Oct 23, 2009 6:14 am

Hello everyone -

Im having a small problem when it comes to organizing my products on a page. we have an extensive inventory of strings, and in an effort to keep the site simple - we broke them down into Main groups - then sub groups -

main store - https://circlekstrings.com/store/
Main Group for Standard Scale - http://circlekstrings.com/store/standard.main.html
Sub Group for 5 string basses - http://circlekstrings.com/store/standard.5string.html

so now you will see there are a lot of sets available for the 5 string bass - but most importantly there are now 3 kinds of sets - Balanced / Traditional / Drop tuning.

We want to keep them all on the same page so people can see the gauge differences between balanced and traditional and so on

so the question is - is it possible for me to create 3 tables - 3 columns each (just like the current page) so I can separate the 3 different types of sets? - I would also love to be able to put a title at the top of each table as well - something like:

Balanced Sets
1 2 3
4 5 6
7 8 9

Traditional Sets
1 2 3
4 5 6
7 8 9


Drop Tune Sets
1 2 3
4 5 6
7 8 9


does that make sense?

thanks in advance

C
circlekstrings
 
Posts: 51
Joined: Thu Apr 23, 2009 3:29 pm

Postby Jim » Fri Oct 23, 2009 9:34 am

In your products use one of the extra product fields to contain what section the product will be displayed in, ie Balanced or Traditional or Drop tuning.

In your custom page template you can do multiple loop product sections. So just before each loop product section you can output a title. Also before a loop set a VAR that uses a value you set in one of the extra product fields. Then when you loop through the products check to see if the VAR matches the value in the extra product field. If it does then display that product otherwise skip it.

Repeat the above for each section you need. This will mean that publishing will take longer because each page will loop through the assigned products multiple times but that still shouldn't add too much time to a publish.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby circlekstrings » Fri Oct 23, 2009 11:44 am

Unfortunately i don't think my shop site skill set is quite up to speed with these kinds of changes -i have never worked with custom templates or anything along those lines
circlekstrings
 
Posts: 51
Joined: Thu Apr 23, 2009 3:29 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 109 guests