Shopify Bug ?

Aakash_InfoTech
New Member
5 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.

Replies 3 (3)
Bunty
Shopify Partner
133 39 80

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.

 

Aakash_InfoTech
New Member
5 0 0

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

Thank you

sillycube
Shopify Partner
693 16 100

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

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