Accessing line_item properties in handlebars

Comments

2 comments

  • Jolyon Blazey
    Celigo University Level 2: Seasoned

    line_items[*].X as above in shopify order json was the important syntax change that made handlebars work for me in the context of a line item (Items: custom field name) for Netsuite sales order . Example code

    {{#each line_items[*].properties}}  
    {{#compare name '==' 'discountA'}}
    {{split value ":" 1}};
    {{else compare name '==' 'discountB'}}
    {{split value ":" 1}};
    {{/compare}}
    {{/each}}
    0
  • Balasubramanian Mahadevan Community manager Senior Technical Writer
    Engaged
    Celigo University Level 2: Seasoned

    Jolyon Blazey Just wanted to understand if you are facing the issue with the handlebars in a flow using the Shopify - NetSuite integrated app or is this issue surfacing while using a custom flow. Let us know so that we can direct your query to the appropriate team.

    0

Please sign in to leave a comment.