Why does Markets "Compare-At Price Hiding" Break Shopify Discount Functions?

As discussed in this previous thread, when the Shopify Markets “Compare-At Price Hiding” setting is enabled, variants will not have a visible compare-at price in the Storefront API. Shopify Discount Functions also experience the same phenomenon.

Though the reasoning makes sense, I don’t think this same limitation should apply to the Shopify Discount Functions API.

Unlike the Storefront API, Discount Functions API GraphQL responses are not exposed to customers. The data that apps request is handled completely on the server side.

One common use case for users of our app is offering discounts that are calculated based on the “compare-at price” of a variant rather than its “price.” When Compare-At Price Hiding is enabled, this functionality completely breaks, as there is no compareAtAmountPerQuantity available for the calculation.

I don’t see the benefit of hiding the compare at price here. Can this be changed?

If not, can someone please explain why not?

Thanks,
Tobe

Hey Tobe - I’m moving this to the “Markets” board, as I think the team who monitors there might have the best advice.

1 Like