Hello,
I have an application that allow to create Bundles, BOGOs, etc.
Merchants creates discounts on my application by selecting product handles they want to include in the discount.
Sometimes, merchants can use Translate Apps to translate the handle. In this case, even if the product and the id is the same, I can’t use Shopify AJAX API /products/${handle}.js because the handle isn’t the same anymore. How can I handle this issue ?
For ex, let’s say a merchant have those two urls, but they are the same product:
/fr/product/mon-super-snowboard
/en/product/my-super-snowboard
I was expecting that calling /fr/products/my-super-snowboard would return the same result as /en/products/my-super-snowboard but it seems that I have to call /fr/product/mon-super-snowboard . The problem is that I don’t have access to this handle in my Theme App Extension.