Sample Shopify code to display discounts in cart doesn't work

Highlighted
Excursionist
15 1 3

I am trying, like MANY before me, to display the discount that an applied coupon has in the PRODUCT and CART page.

 

I am using the sample code here - https://help.shopify.com/en/themes/development/discounts

 

When I go to the checkout page, I see the coupon applied, but using the above code, I am not able to see the discount on the cart page.  I tried using the JS SDK to get the cart object, and the discount isn't in their either.


It's completely ridiculous that we cannot see the discounted price or discounted line items to display to the user prior to checkout, as many others have said.  I've seen some apps that do this, but would like to know HOW they are doing is so the rest of us can learn.

 

Does anyone know why Shopify's own documentation on this doesn't even work?

1 Like
Tourist
7 0 2

Noticed the same thing yesterday - the code was already integrated in to the my theme (Brooklyn) but it's clearly not working. Is this a new bug perhaps?

0 Likes
Highlighted
Excursionist
15 1 3

That's crazy.  Does Shopify publish some kind of changelog anywhere that might offer more details?

0 Likes