Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
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.
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.
I have tried fetch. But it is not working then also.
Thank you
User | RANK |
---|---|
5 | |
5 | |
4 | |
4 | |
3 |