
|

Help support American Red Cross's disaster relief efforts to help those affected by Hurricane Sandy. |

|

PST13.1: Display Items from a Specific Category
This code displays a list of products from a specific category/subcategory.
Some merchants want their customers to go directly to their members only category when signing in through the Members Only Catalog link rather than having to use the members only search feature.
This code can be added to the bottom of the Product Search - Members Only template, or replace the original code entirely, and would display the contents of whatever category name was placed within the tags
<b><ss:link source="$catalog.categories['Category_Name']"/></b></div>
<ss:foreach item="product" within="$store.categories['Category_Name'].products">
The code can also be used to display the items in a specific subcategory. The demo below displays the contents of the subcategory Dinnerware Settings from the main category Home 4 U:
<b><ss:link source="$catalog.categories['Home 4 U:Dinnerware Settings']"/></b></div>
<ss:foreach item="product" within="$store.categories['Home 4 U:Dinnerware Settings'].products">
Download Code Sample (right-click and choose "Save Link As...").
|
|
Brick Place Setting
Classic lines, heavy and solid
Price: $129.99 $116.99 You Save: $13.00 (10%)
|
|
Here is an alternative treatment of the original Member's Catalog Search page, limited to the members only category.
Member's Catalog Search
Download Code Sample (right-click and choose "Save Link As...").
|