Liquid, JavaScript, themes, sales channels
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.
User | RANK |
---|---|
35 | |
25 | |
14 | |
13 | |
9 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023