Product Summary Snippet

16 Oct 2015 12:48 PMLicensee Person

This 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), &quot;&quot;, GenerateHTMLA(RelativePath, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&lt;div class=&quot;&quot;image&quot;&quot; style=&quot;&quot;background-image: url('/&quot; &amp; HTMLAttributeEncode(ImageBasePathAndFileName) &amp; &quot;')&quot;&quot;&gt;&lt;!-- --&gt;&lt;/div&gt;&quot;))">[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(&quot;Price&quot;)">[Price]</span></div>

<div><span class="Script" contenteditable="false" enctype="text/html" expression="GenerateHTMLA(RelativePath, &quot;&quot;, &quot;read-more&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;More&quot;)">[Read More]</span></div>

<div><span class="Script" contenteditable="false" enctype="text/html" expression="IIf(InStock, GenerateHTMLA(&quot;Default.aspx?PageType=MethodView&amp;Method=AddToCart&amp;&quot; &amp; URLParameters, &quot;&quot;, &quot;add-to-cart&quot;, &quot;&quot;, &quot;&quot;, &quot;nofollow&quot;, &quot;&quot;, &quot;Add to Cart&quot;), &quot;&lt;span class=&quot;&quot;sold-out&quot;&quot;&gt;Sold Out&lt;/span&gt;&quot;)">[Add to Cart]</span></div>