Price for a newly created variant shows after 10-20 seconds on store

SanaMinatozaki
Tourist
5 0 0

But how do you handle cart subtotal? Line item price is still zero so the cart subtotal might not be correct

0 Likes
NagoyaDev
Excursionist
26 1 0

@SanaMinatozaki 

What I do after replacing all the missing prices is to get all the item prices, total them, fix price formatting and replace the original subtotal with the new total using DOM manipulation.


0 Likes
NagoyaDev
Excursionist
26 1 0

Also, when the user goes to actually check out, the car page will hang and load until all of the correct pricing has been completely added to the cart so you will never have an instance where a customer can checkout with a zero-priced item.

0 Likes

Even I try to use GraphQL (product variant create) to create the new variant. It still takes a long time to show the correct data on the cart page. 

Hope Shopify can improve it. It's the backend issue that app developers cannot control. And it's seriously affecting the conversion rate on the cart page

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

@NagoyaDev In another of your posts, you mentioned that @PaulNewton 's method would work although you didn't try it.

I've read his post but couldn't understand. Can you elaborate on this one?

0 Likes
PaulNewton
Shopify Partner
3128 194 575

@SanaMinatozaki if you mean my post about a dummy product it's just that, create an unpublish product with placeholder data.

When the custom stuff comes in push that the existing dummy product basically skipping waiting on a roundtrip if you were to create everything at once.

Never seen if it's done in the wild though since its kinda the reverse of what a lot of apps and customizations do: a dummy cart , or loader preventing checkout until the product is ready.

 

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes
NagoyaDev
Excursionist
26 1 0

@sagarkohli I actually based my app around the functionality of this app and actually yes you do need to wait 10-20 seconds when you use it. 

The app will actually console log how long it takes and the three times I tested it, they all took about 15 seconds

0 Likes