Shopify Bug ?

Aakash_InfoTech
New Member
4 0 0

Hey, Shopify developers
We have build a price calculator for our clients store. The functionality of price calculator is when user enter there requirement we are calculating a price then with the final price and the options. We create a new variant in that product using Admin api. after that we are adding that variant in the cart. Then user will go in cart and cart is not loading properly. After 2,3 refresh the cart will load.

I am sure that this is the bug from Shopify that cart json is not loading properly.

Here is the video url of issue  - https://drive.google.com/file/d/1-fE-yi3yEmiGHz1psRAwda_U85UdwDkG/view

Kindly please help this is very serious bug.

0 Likes
Bunty
Explorer
114 29 69

It looks like a caching issue and/or delay after you do an unusual processing of creating a new variant each time someone adds to cart.

 

Once you are done processing, try a fetch of the product and also a fetch of the cart before you redirect. It might be enough to refresh the cache.

 

0 Likes
Aakash_InfoTech
New Member
4 0 0

I have tried fetch. But it is not working then also.

Thank you

0 Likes

This thread: https://community.shopify.com/c/Shopify-APIs-SDKs/Price-for-a-newly-created-variant-shows-after-10-2...

SPO - SEO App to research keywords & edit social link preview
BYOB - Build Your Own Bundles
0 Likes