Re: presentment_prices missing in API variant list

Solved

presentment_prices missing in API variant list

kyo-chikiriya
Visitor
2 1 3

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

Accepted Solution (1)

kyo-chikiriya
Visitor
2 1 3

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.

View solution in original post

Replies 2 (2)

kyo-chikiriya
Visitor
2 1 3

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.

minejebercane
Visitor
3 0 0

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"