Get product price in specific currency (Storefront API)

Pedro_Netto
Shopify Partner
18 0 8

Hey guys, does anyone know how would I fetch a product in a specific currency via Storefront API?

0 Likes
Pedro_Netto
Shopify Partner
18 0 8

As it turned out I found out this is impossible, but for those interested in the function, the best way to do it is via javascript, using this Shopify conversion index to convert the values in your website: https://cdn.shopify.com/s/javascripts/currencies.js

sdavidoff
New Member
1 0 0

How are you importing this file into your project? Not working with fetch for me.

0 Likes