{%comment -%} You can edit the list template from Layouts/CustomerOrders/list.html {%endcomment -%}{%captureordersOutput -%}{module_order filter="all" collection="orders"}{%endcapture-%}{%ifthis.orders.items -%}<tableclass="data-table order-list collapsing-table"cellpadding="0"cellspacing="0"><thead><tr><th>Order</th><th>Date</th><th>Status</th><th>Ammount</th></tr></thead><tbody>{{ordersOutput}}</tbody></table>{%else -%}<divstyle="text-align: center;font-size: 14px;">You don't have any orders so far. <ahref="/shop.html"class="read-more">Go shopping <span>→</span></a></div>{%endif%}
<h3>Archive</h3>{tag_blogpostarchive,60 template="" collection="blogpostarchive"}
{%comment -%} Suppress the output of the tag_blogpostarchive by using the template="" syntax and capture the data rendered by the tag using the collection="blogpostarchive" syntax {%endcomment -%}<divclass="BlogPostArchive"><ul>{%comment -%} Use liquid to loop through the posts archive collected by the tag_blogpostarchive {%endcomment -%}{%foriteminthis.blogpostarchive.items -%}<li><ahref="{{item.url}}"title="{{item.year}}-{{item.month}}">{{item.month}}{{item.year}} ({{item.count}})</a></li>{%endfor -%}</ul></div>
{%comment -%} suppress the output of the tag_blogrecentpost by using the template="" syntax and capture the data rendered by the tag using the collection="blogrecentposts" syntax {%endcomment -%}{tag_blogrecentpost,10 template="" collection="blogrecentposts"}
<divclass="BlogRecentPost"><ul>{%comment -%} Use liquid to loop through the posts collected by the tag_blogrecentpost {%endcomment -%}{%forpostinthis.blogrecentposts.items -%}<li><ahref="{{post.url}}"title="{{post.title}}">{{post.title}}</a></li>{%endfor -%}</ul></div>
<p>Dear {tag_recipientname},</p><p>Thank you for contacting us! We will be in touch as soon as we can.</p>{module_webformresultsrender="item"collection="formResults"template=""}
{% ifformresults.eidcontains'requires you to verify your subscription' %}
<h2>Pleaseconfirmyourrequesttojoinournewsletter.</h2><p>If you received this email by mistake, simply delete it.</p><p>Your request won't go through if you don't click the confirmation link above.</p><table width="100%" border="0" cellspacing="0" cellpadding="0" class="mobile-button-container"><tbody><tr><td align="center" style="padding: 5px 0px 20px;" class="padding-copy"><table border="0" cellspacing="0" cellpadding="0" class="button-wrapper"><tbody><tr><td align="center" class="hj-button-can">{tag_verificationurl}</td></tr></tbody></table></td></tr></tbody></table>{% endif %}
<p>--------------</p><h2><strong>Message:</strong></h2><pre style="font-size: 13px; font-family: sans-serif;">{{ formresults.results.Message }}</pre>
{%comment%}Break the content apart for the body{%endcomment%}{%assigncontent=postItem.['body']%}{%assignpargraphArray=content|split:'</p>'%}{%comment%}Get the first paragraph and replaced the part we split on{%endcomment%}{%assignfeaturePargraph=pargraphArray[0]|append:'</p>'%}{%comment%}Safeguarding against bad markup{%endcomment%}<divstyle="font-size:30px; font-weight:bold;">{%comment%}We strip the html just as a safeguard{%endcomment%}{{featurePargraph|strip_html|prepend:'<p>'|append:'</p>'}}</div><hr>{%comment%}Post the body with the first paragraph removed{%endcomment%}{{content|replace_first:featurePargraph,''}}<hr>
{%assignfruits="orange apple banana apple orange"|split:' '%}{%assignuniqueFruit=""%}{%forfruitinfruits%}{%unlessuniqueFruitcontainsfruit%}{{fruit}}{%assignuniqueFruit=uniqueFruit|append:' '|append:fruit%}{%endunless%}{%endfor%}
<scripttype="text/javascript"src="/CatalystScripts/Java_DynMenusSelectedCSS.js"></script>{module_menu menuId="1336130" template="" collection="menu_1336130"}
<divid="cat_1336130_divs"><ulid="nav_1336130">{%foriteminthis.menu_1336130.items -%}<li><ahref="{{item.url}}">{{item.label}}</a></li>{%endfor -%}{%comment -%} use globals.user variable to verify if user is logged in {%endcomment -%}{%ifglobals.user.isLoggedIn=='true'%}<li>{module_logout}</li>{%endif -%}</ul></div><scripttype="text/javascript">catSetSelectedCSSItem('nav_1336130');</script>
{%assignmetaTitle= -%}{%assignmetaDescription= -%}{%assignmetaTags= -%}{%assignmetaCategory= -%}{%assignmetaTwitterHandle= -%}{%assignmetaURL= -%}{%assignmetaImage="" -%}{%assignmetaSiteName="" -%}{%assignmetaCanonicalURL="" -%}{%assignmetaFacebookAdminID="" -%}{%assignmetaTwitterCardType="" -%}{%casemetaTwitterCardType -%}{%when'summary' -%}{%assignmetaTwitterSize='Width=120&Height=120' -%}{%when'summary_large_image' -%}{%assignmetaTwitterSize='Width=500&Height=270' -%}{%when'photo' -%}{%assignmetaTwitterSize='Width=640&Height=478' -%}{%when'product' -%}{%assignmetaTwitterSize='Width=160&Height=160' -%}{%endcase -%}{%comment -%} Place this data between the <head> tags of your website {%endcomment -%}<title>{{metaTitle}}</title><metaname="keywords"content="{{metaTags}}"><metaname="description"content="{{metaDescription}}"/>{%comment -%} Twitter Card data - Cards can be - summary, summary_large_image, photo {%endcomment -%}<metaname="twitter:card"content="photo"><metaname="twitter:site"content="{{metaTwitterHandle}}"><metaname="twitter:title"content="{{metaTitle}}"><metaname="twitter:description"content="{{metaDescription}}"><metaname="twitter:creator"content="{{metaTwitterHandle}}">{%comment -%} Twitter Summary card images must be at least 120x120px {%endcomment -%}<metaname="twitter:image"content="{{metaImage}}?Action=thumbnail&algorithm=fill_proportional&{{metaTwitterSize}}">{%comment -%} Open Graph data {%endcomment -%}<metaproperty="og:title"content="{{metaTitle}}"/><metaproperty="og:type"content="article"/><metaproperty="og:url"content="{{metaURL}}"/><metaproperty="og:image"content="{{metaImage}}}?Action=thumbnail&algorithm=fill_proportional&Width=1200&Height=630"/><metaproperty="og:description"content="{{metaDescription}}"/><metaproperty="og:site_name"content="{{metaSiteName}}"/><metaproperty="fb:admins"content="{{metaFacebookAdminID}}"/>{%comment -%} Open Graph Article (Facebook and Pinterest) {%endcomment -%}<metaproperty="article:author"content="{{metaTwitterHandle}}"><metaproperty="article:section"content="{{metaCategory}}"><metaproperty="article:tag"content="{{metaTags}}">{%PublishTimes%}<metaproperty="article:published_time"content="{{this.['releaseDate']}}"><metaproperty="article:modified_time"content="{{this.['lastupdatedate']}}"><metaproperty="article:expiration_time"content="{{this.['expiryDate']}}">
<ahref="{{this.url|split:'/'|first|prepend:'/'}}"title="Back to {{this.url|split:'/'|first}}">{%include"/Templates/_includes/icons/chevron-left.svg" -%}</a>
{%assigngenerateURL='' -%}{%assignexcludeParamFromURL='page, ID' -%}{%forgetParaminglobals.get -%}{%comment%}if array{%endcomment%}{%ifexcludeParamFromURLcontainsgetParam[0]%}{%continue%}{%endif%}{%ifgetParam[1][1]%}{%forgetValuesingetParam[1]%}<pre>&{{getParam[0]}}={{getValues}}</pre>{%assigngenerateURL=generateURL|append:'&'|append:getParam[0]|append:'='|append:getValues%}{%endfor%}{%else%}<pre>&{{getParam[0]}}={{getParam[1]}}</pre>{%assigngenerateURL=generateURL|append:'&'|append:getParam[0]|append:'='|append:getParam[1]%}{%endif%}{%endfor -%}{%comment%}Add the page and domain to the URL {%endcomment%}{%assigngenerateURL=generateURL|prepend:globals.get.ID|prepend:gv_site.domain -%}
<!-- use this on webapp details pages -->{%assignsection=this.url|split:'/'|first%}{%ifglobals.visitor.referrercontainsgv_site.domain%}{%assignbackJSClick='window.history.back(); false' -%}{%assignbackURL='globals.visitor.referrer' -%}{%else%}{%assignbackJSClick='true' -%}{%assignbackURL=section|prepend:'/' -%}{%endif%}<ahref="{{backURL}}"title="Back to {{section}}"onclick="{{backJSClick}}"> Back
</a>
<!-- This is a way to get module_data calling the attibutes… it however does not deal with the "stock" of each -->{module_data resource="productsattributes" version="v3" fields="id,groupName,mandatory,keepStock" where="\{'product.id':'{{this['id']}}'\}" skip="0" limit="10" order="id" collection="theproductAttributes"}
<h1>prouct id: {{this['id']}}</h1><h2>productsattributes</h2>{%comment%}adding product adds lots of noise but you can get the full product details for the attibutes.{%endcomment%}{%forproductAttributeintheproductAttributes.items%}<pre>{{productAttribute|json}}</pre><h1>{{productAttribute['groupName']}}</h1> {module_data resource="productsattributeoptions" version="v3" fields="id,siteId,groupId,optionName,imagePath,attribute" skip="0" limit="10" where="\{'groupId':'{{productAttribute['id']}}'\}" order="id" collection="productAttributeOptions"}
{%forsingleAttributeOptioninproductAttributeOptions.items%}<pre>{{singleAttributeOption|json}}</pre>{%endfor%}<hr>{%endfor%}
{%comment -%} Suppress the output of the module using template="" syntax. Also, capture the data in a collection using collection="shoppingCart" syntax. This way you can customize without JS the layout of the cart summary{%endcomment -%}{module_shoppingcartsummary template="" collection="shoppingCart"}
{%comment -%} Use Liquid conditionals for your layout logic {%endcomment -%}{%ifthis.shoppingCart.itemCount>0 -%}<ahref="/OrderRetrievev2.aspx">Shopping Cart ({{this.shoppingCart.itemCount}} items)</a>{%else -%}<ahref="/OrderRetrievev2.aspx">Shopping Cart (0)</a>{%endif -%}
<!-- note this requires testing. Author: Adam Cook. -->{% assign imgSplits = description | split: '<img ' %}{% for imgSplit in imgSplits %} {% comment -%}Each item in the array starts with the middle portion of an img element. We can tell where an img element ends because it will have a closing > character.{% endcomment -%} {% assign img = '<img ' | append: imgSplit | split: '>' | first | append: '>' -%} {% assign description = description | remove: img -%}{% endfor %}
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.