Line item properties in Dawn Theme

Solved
littlebundles
Tourist
8 0 2

this is a great tip! Just installed it and setup a custom field for a product and it works well! thank you so much.

jrc8173
Shopify Partner
3 0 0

@akira2 Is your pop-up cart window using the ajax cart template if so, you need to add the following to your ajax code in side the {{#items}} code in here some where {{/items}} .... if it still does not display you need to find the code in your theme.js that build cart items and add properties    i.e. (var prodName = cartItems.title or var itemQty = cartItems.quantity) etc.. and add var prodProps = cartItems.properties & add to the item object i.e (  item = { key: cartItem.key, url: cartItem.url, properties: prodProps, }    )

 

{{#properties}}
{{#each this}}
{{#if this}}
<span class="ajaxcart__product-meta2">{{@key}}: {{this}}&nbsp;<br></span>
{{/if}}
{{/each}}
{{/properties}}

 

 

0 Likes