Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Empty DiscountAllocations despite discount code

mattdenoronha
Shopify Partner
30 1 13

Screenshot 2024-01-25 at 13.27.42.png

 

The above screenshot has the output from useApi() in the console. As you can see, discountCodes shows a correct array of one discount. However, discountAllocations appears to be empty, despite there being a discount applied. 

 

Is this a bug or does discountAllocations work differently?

Replies 0 (0)