Product Summary Snippet
16 Oct 2015 12:48 PMLicensee PersonThis snippet is used to generate the layout for the product summary in the shop list page. Create a snippet with the file name: product.summary.
Sample Code
<div><span class="Script" contenteditable="false" enctype="text/html" expression="IIf(IsNothing(Image), "", GenerateHTMLA(RelativePath, "", "", "", "", "", "", "<div class=""image"" style=""background-image: url('/" & HTMLAttributeEncode(ImageBasePathAndFileName) & "')""><!-- --></div>"))">[Image]</span></div> <p class="title"><span class="Script" contenteditable="false" enctype="text/html" expression="GenerateHTMLAForArticle()">[Title]</span></p> <div class="price"><span class="Script" contenteditable="false" enctype="text/plain" expression="PropertyValueFormatted("Price")">[Price]</span></div> <div><span class="Script" contenteditable="false" enctype="text/html" expression="GenerateHTMLA(RelativePath, "", "read-more", "", "", "", "", "More")">[Read More]</span></div> <div><span class="Script" contenteditable="false" enctype="text/html" expression="IIf(InStock, GenerateHTMLA("Default.aspx?PageType=MethodView&Method=AddToCart&" & URLParameters, "", "add-to-cart", "", "", "nofollow", "", "Add to Cart"), "<span class=""sold-out"">Sold Out</span>")">[Add to Cart]</span></div>