Posts Tagged ‘product detail template’
Hiding the size or color attribute when they are out of stock
Written by Matt on July 16, 2008 – 2:30 pmYou 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>
<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: attributes, coding, product detail template, prostores, Tips
Posted in ProStores Coding, Tips | 2 Comments »