discount_application in cart object

New Member
1 0 1

According to documentation there should be a `discount_application` array. But when I open `../cart.js` there is no such variable even if the discount code was already added to shopping cart.

1 Like
Shopify Partner
7 0 1

I'm finding this too - I have applied an automatic discount code which can be seen in checkout, but when trying to loop through discounts in cart using:


{% for discount_application in cart.discount_applications %}
Discount name: {{ discount_application.title }}
Savings: -{{ discount_application.total_allocated_amount | money }}
{% endfor %}


it shows nothing.  also cart.js doesnt show any discounts.