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"
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting 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, 2024