Category Page Templates and Loops

General ShopSite user discussion

Category Page Templates and Loops

Postby dZi » Fri Feb 29, 2008 12:14 pm

It looks like a combination of my Product Template and my Page Template affect how the Pages, that have items assigned, will appear.

I want to be able to create a layout that is very similar to my Search Results Layout.

I would like to create a Loop that will produce items in rows of 4.

I just don't see which Template I enter that Loop code in....

Thanks guys, the site is almost there!
dZi
 
Posts: 96
Joined: Wed Feb 20, 2008 1:10 pm

Postby loren_d_c » Fri Feb 29, 2008 12:18 pm

The column layout of the products would be controlled by your page template via the LOOP PRODUCTS loop. See the second example in the help page at:

http://www.shopsite.com/templates/examples/page-06-products.html

Also see the documentation for the LOOP PRODUCTS tag at:

http://www.shopsite.com/help/9.0/en-US/sc/pro/custom.template.spec-page.html

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby Jim » Fri Feb 29, 2008 12:24 pm

The product template defines how each product will appear on the page. The page template defines the overall look of the page with an area defined where the products go. So the [-- LOOP Products --] tag goes in the page template where you want the products to display.

You can find examples in the help at
http://www.shopsite.com/templates/examp ... ducts.html
has an example where the number of columns of products is specified. Look at the code in "Product Loop Example 2"
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 115 guests

cron