Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi
I try to retrieve the list of all variants with the prices in each local currencies.
in the doc, I found that the info I need is "presentment_prices", in the variant list, from API 2023-04.
I tries to load it but the presentment_prices info is always missing,
I tries the /admin/api/2023-04/variants.json and /admin/api/2023-04/variants/{variant_id}.json but presentment_prices is always missing. (I tired different ids but always the same)
Is there a way to fix this?
thank you for your help
Solved! Go to the solution
This is an accepted solution.
For does having similar problem, I might as well report on the follow-up of this question, in case it might help someone.
So, I didn't get any useful help from shopify, so for me, the bug is still very much present.
But, as I just needed a way to export all products with all local pricing to googlesheets, I found a work around by using a page template.
I created a custom page template with all the information I need in json format (using {% layout none %} to only output data i need).
I can then load the page with the currency parameters (for example ?currency=EUR) to get all the product with the prices in the corresponding currency. Finally, I have a daily script in googlesheet that load the page for each currency I need and save the information in my googlesheet.
It's not the best solution but it was enough for what I needed and it works. So, I'll mark this as the solution, even if it does not address the real problem.
This is an accepted solution.
For does having similar problem, I might as well report on the follow-up of this question, in case it might help someone.
So, I didn't get any useful help from shopify, so for me, the bug is still very much present.
But, as I just needed a way to export all products with all local pricing to googlesheets, I found a work around by using a page template.
I created a custom page template with all the information I need in json format (using {% layout none %} to only output data i need).
I can then load the page with the currency parameters (for example ?currency=EUR) to get all the product with the prices in the corresponding currency. Finally, I have a daily script in googlesheet that load the page for each currency I need and save the information in my googlesheet.
It's not the best solution but it was enough for what I needed and it works. So, I'll mark this as the solution, even if it does not address the real problem.
I'm also struggling with this. Using the Graph QL explorer – https://shopify.dev/docs/custom-storefronts/building-with-the-storefront-api/api-exploration/graphiq... – I can tell that the shop entity has `enabledPresentmentCurrencies`, but nowhere in the other entities can I see them being used. I can confirm that I've got more than one currency in my response (the demo only has CAD).
Using API version "July22"
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024