Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Is there any shopify API which will provide the product details based on product handle, language and currency.
Also it should work with hydrogen apps, also any way to get locale, currency value other than from Shopify object as Shopify object will not be present in hydrogen apps
fetch('/en/products/red-rain-coat.js') .then(response => response.json()) .then(product => console.log(product));
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Amelia
Actually like this I already tried but when app using hydogren or some other translation library then we dont get shopify object.
Also fetching api like this /locale/<productHandle>.js will not work for all stores as with some stores it will work like this /en-gb/handle.json and with some don't
So is there any shopify storefront grapsql api which accepts handle,language and currency and give response?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024