Latest Posts »
Latest Comments »
Popular Posts »

How to display related products on cart template

Written by Matt on July 22, 2008 – 4:38 pm

Just a quickie for today! :-) I’ve seen a few people using this already but I thought I’d share it with you all.

<ss:if test="$cart.Details">
<p>You may also be interested in the following products:</p> 

<ul>
<ss:foreach item="detail" within="$cart.Details">
  <ss:foreach item="relatedproduct" within="$detail.relatedProducts">
    <li><ss:link source="$relatedproduct"><ss:value source="$relatedproduct.name"/></ss:link></li>
  </ss:foreach>
</ss:foreach>
</ul>
</ss:if>

Tags: , , ,
Posted in ProStores Coding, Tips | No Comments »

Hiding the size or color attribute when they are out of stock

Written by Matt on July 16, 2008 – 2:30 pm

You can hide the size attributes on the Product/Catalog Detail page if the attribute is out of stock, you can modify it for color as well. You could take this code and modify it for other similar functions.

**note** Most likely this code will only work with Advanced Tier or higher ProStores sites.


<td>
  <font face="arial,helv" size="2"><b>Size</b>&nbsp;
    <select name="size">
      <ss:foreach item="attr" within="$product.attributes">
        <ss:if test="$attr.quantity <> 0">
          <option value="$attr.size"><ss:value source="$attr.size"/></option>
        </ss:if>
      </ss:foreach>
    </select>
  </font>
</td>

Tags: , , , ,
Posted in ProStores Coding, Tips | 2 Comments »

Customizing Search Results Next Links

Written by Matt on July 15, 2008 – 10:20 pm

Customizing Search Results Next Links *from the ssml support referrence*

The tag provides several different options for displaying “Next” and “Previous” links on your search results pages.
Read more »


Tags: , , ,
Posted in ProStores Coding, Tips | No Comments »

Subcategory Drill-Down on Product / Catalog List

Written by Matt on July 15, 2008 – 2:59 pm

The following code modifies the Catalog List template to do one of the following:

* If the user clicks a category link and that category has subcategories, those subcategories will be displayed on the Catalog List template as links.
* If the user clicks a category or subcategory link that does not have any categories, the Catalog List will display a list of product search results.

You can modify this code to show images as subcategory links as well. :-)

Read more »


Tags: , , , ,
Posted in ProStores Coding, Tips | No Comments »

ProStores Tip: Static Pages

Written by Matt on June 28, 2008 – 9:09 am

If you want to link to a static page you can create a User Defined Template, thats ProStores speak for a page you created in Design Studio, and use this code for the link.

<ss:link source="$templateSet.templates['*****']">page name</ss:link>

To create a static page go to Design Studio > Click Add a Page Template > type in the page name, which is represented by the ****** in the code above and the rest of the info > Choose User Defined Template from the final drop down box.

You then place the link in the part of the site you want it to show up in.


Tags: , , , ,
Posted in ProStores Coding, Tips | No Comments »