Using different discount items in shopify Integration depending upon the line items

Hello,

I am working on an integration where revenue from some of the items is going into different account (say account X) than rest of the items (say account Y). Regarding the discounts; If item revenue goes into account X the discount revenue goes into account Z if item revenue goes into account Y the discount revenue goes into account Y. All the items with revenue going into account Y have "Ticket" in their Shopify product title. Hence, I have tried following configurations:

  • Attempt 1:
Discount settings: None for cart level
Mapping: {{#contains line_items.0.title "Ticket"}} 37298 {{else}} 37277 {{/contains}}
Results: No discount item is applied in netsuite.
 
  • Attempt 2:
Discount settings: Use "Shopify Cart Level Discount" item to track discount (NetSuite internal ID: 37277)
Mapping: {{#contains line_items.0.title "Ticket"}} 37298 {{else}} 37277 {{/contains}}
Results: Irrespective of the boolean value of the clause the default discount item was applied on cart level
 
Can anyone let me know how to make this handlebar work?
0

Comments

2 comments
Date Votes
  • Hello Sujit Desai

    The handlebar you are trying is correct. Actually there was a fix to this scenario in the recent build. I assume you are trying on the latest version of the IA i.e., v1.40
    Can you please confirm if the IA tile is on the above latest version, and you have tried this scenario in the latest version of IA. 
    Let us know for any further queries. 

    Thanks,

     
    
    
    0
  • Khaisar,

     

    Thank you for the suggestion. We are not using the latest version but we are handling this customization in NetSuite now since the discount items were to be updated based on the income account of the line item.

    0

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post