Shopify Script Editor issue - discount_code.code does not work in actual cart

Shopify Partner
4 0 0

Hello Everyone,


I am working on a shopify script and facing a very strange issue. I have some logic in my script that is based on Input.cart.discount_code.code 


Now in the shopify preview I always get Input.cart.discount_code.code value but in actual cart even I have the discount applied it did not read the code.

Now it does not happens in every case if I increased products its starts working but if I have limited product Qty it won't work. 

Replies 0 (0)