Shopify API responding success but the changes are not reflecting on the store front

Shopify API responding success but the changes are not reflecting on the store front

AJ1997
Shopify Partner
1 0 0

Hello Everyone, 

I am the developer of a Shopify app called Pricing By Country ([Pricing By Country & Currency - Multi country pricing, Double Profit, Shipping Rate, Converter | Shopify App Store|https://apps.shopify.com/pricing-by-country] )

In the app I am calling an API to create product variants, Shopify is responding success with the exact price we want but the same price is not visible on the storefront, seems like prices are not getting updated in Shopify’s database, 

Screenshot of all prices are after a successful response from Shopify (patched in form): Screenshot 

Screenshot of the Merchant Storefront: Screenshot 

As our multiple merchants are facing this issue, if anyone has a solution for this then I request you to please help, any help will be greatly appreciated

Reply 1 (1)

Shabalinski___A
Shopify Partner
21 4 2

Hi, @AJ1997!

 

I don't know exactly, but try requesting the Products Variants you need, using Shopify AdminAPI and see what's stored in the 'presentment_prices' field (A list of the variant's presentment prices and compare-at prices in each of the shop's enabled presentment currencies).

 

Based on this object, Storefront API gets the right prices for a particular currency.

 

I think this will help you understand the problem.  If not, describe the problem in more detail with specific code examples.

 

Frontend (Shopify) Engineer at SpiralScout

  • - Was my reply helpful? Click Like to let me know!
  • - Was your question answered? Mark it as an Accepted Solution!