New Discount Function API has an issue when create

I just encountered an issue with the new Discount Function API. It was working fine last week, but today when I tried to create a new one, it returned a product-discount instead.

When I checked the functions, I noticed that it only includes PRODUCT classes. I believe this issue started last Saturday or Sunday, because everything was still working correctly on Friday’s morning.

Could you please check this issue?

  • Image 1 shows how it looked last 10AM Friday
  • Image 2 shows the current situation

Thanks!

3 Likes

Can confirm this behaviour, all existing discounts with more than 1 class, now just return ‘PRODUCT’.

1 Like

@bkspace Thanks for letting me know I’m not the only one experiencing this issue. I tried creating a new extension with the same type to see if Shopify had made any changes, but it behaves exactly like the old one. I think this is a bug on Shopify’s end.

I can confirm that we did have an issue on our end where discounts with more than one discount class were incorrectly being interpreted as having a single discount class. The problem has now been resolved, I appologize for the inconvenience.