Price for newly created variant shows after 15 to 20 seconds

Price for newly created variant shows after 15 to 20 seconds

sagarkohli
Shopify Partner
14 0 5

We have a customization app where we create new variants based on the inputs from the customer. However, we see a delay of 10 to 20 seconds between creating a new variant using Shopify's Rest or GraphQL API and when it shows the variant information such as a price on the Storefront. Due to this, the cart page shows the price for the newly created variant as 0 for about 15 to 20 seconds. We create the new variant as a result of the "Add to cart" operation.

 

This seems to us as a limitation on Shopify's end where the price information on the API is eventually consistent and not real-time. Can anyone please provide the best way to create a variant and have the price information available without a delay of 15 - 20 seconds?

Replies 0 (0)