Closed maxlaf closed 9 months ago
I was testing in parallel and observed the very same behavior.
Similar issue reported on the WC repo here: https://github.com/woocommerce/woocommerce/issues/34464
Reported in 5940335-zen
Hello, is there a solution to this problem without disabling jetpack? THANKS
Hello, is there a solution to this problem without disabling jetpack? THANKS
I have not seen a fix yet. I have jetpack permanently disabled in order to not have annoyed customers spending an hour adding products to see cleared when logging in!!
Hello, is there a solution to this problem without disabling jetpack? THANKS
I have not seen a fix yet. I have jetpack permanently disabled in order to not have annoyed customers spending an hour adding products to see cleared when logging in!!
Same for me, did you find a replacement jet pack extension that would do the same job?
I am using WPStatistics for the stats and have left it at that.
6047834-zen
This bug is particularly an issue when purchasing subscription products using Apple Pay/Google Pay.
6059843-zen. This bug is forcing the user to choose between using WCPay or WCS&T for automated taxes. They will likely be removing WCPay.
6374348-zen
It is crazy this is not fixed yet. This is costing our company money by (forcing) cart abandonment! Please fix asap.
I had to disable jetpack to remove the issue of the cart clearing when a customer logs in. Had customers spend an hour or more selecting items only to have the cart content removed when they logged in. Very annoying and no fix to be seen in a year since i reported it.
I use WP Statistics for the stats. would prefer it was fixed but this works with disabling jetpack at least!
6402206-zen
The issue is caused by cookie conflict between WCPay and Jetpack Sync. The Jetpack team is working on a fix here: https://github.com/Automattic/jetpack/pull/31423
In the meantime, the sites experiencing the issue can be fixed by contacting support at https://woocommerce.com/my-account/create-a-ticket/ and asking a Happiness Engineer to disable Dedicated Sync. Please note that it might take a bit of time for the change to take effect.
Sent out comms for reports. Details here: p1687120161354979/1687117159.732829-slack-CB37YNEH1
The Jetpack fix was reverted, context: p1688500124456809/1686285707.645099-slack-CBG1CP4EN Blocked and moved to next Sprint.
6603839-zd-woothemes - Disabled dedicated sync.
6754710-zen. Replicated on Jetpack v12.6-a.3. Disabling Jetpack dedicated sync did the trick.
Jetpack fix under review once more. Full update: p9dueE-7zI-p2#comment-10096
Jetpack fix is now part of the 1.59.0
Sync package version and will be also included in the upcoming Jetpack 10.8
release.
Please feel free to test and update the corresponding Sync package version dependency accordingly.
Full update: p9dueE-7zI-p2#comment-10117
Another update as a certain edge case was brought to our attention so we need to fully validate the impact and possibly might need to revert the fix once again :(
For now, please don't update the Sync package dependency to 1.59.0
yet, apologies for this.
Slack discussion: p1697623116284589-slack-C02JQ08G0
Similar report here: 7330851-zd-a8c. We've disabled dedicated sync as a workaround for the time being.
7479044-zen
7563128-zen
Noting that I'd expect the carts to be merged, and for the shopper to decide which if any items should be removed. I've tested this out on Target.com and the carts are combined, giving the shoppers a reminder of their previous cart contents (which many shoppers uses as a wishlist).
Noting that I'd expect the carts to be merged, and for the shopper to decide which if any items should be removed.
in an ideal world, you'd show a warning saying something along the lines of "We found some products from a previous sessions. do you want to add them?" and let them decide accordingly rather than merging the carts automatically, because customers will start complaining that you tricked them into adding more items, etc. This is how IKEA does it on their site and provides great UX.
This thread however has to do with carts getting emptied when you log in on checkout, meaning there is a bug affecting conversions that needs fixing urgently, rather than hoping for an improvement with the UX which would take ages to implement.
Thanks George for the additional example. I tried Ikea's approach and it's ok and the most complicated. There are a few options each with their own pros/cons. The key concern I have is that a very high amount of shoppers use the cart as a way to save items for consideration for days, weeks, or months. https://baymard.com/premium/guideline-collections/wvcimm/2157. Here's a summary of the approaches I've observed:
Of these patterns Home Depot was my favorite as it strikes a good balance between respecting the cart as a bookmarking tool and a shopper's current purchase intentions. Next is Shopify's approach but it falls apart if the cart can't be cookied/stored. It took effort to circumvent their efforts so they've done a pretty good job.
This PR https://github.com/Automattic/woocommerce-payments/pull/8084 would fix the issue in WooPayments 7.2.0, will be released on Feb 14th, 2024.
In case someone wants to test it in advance, please use this test zip file with a note that this zip IS NOT READY for production: NOT-READY-FOR-PRODUCTION___woocommerce-payments_7.2.0-dev_fix_losing_cart_content.zip
I am going to close this issue for now, too. In case this fix causes any other issue with your site, please create a new issue in https://github.com/Automattic/woocommerce-payments/issues, then we can have a look at them.
Describe the bug
When both WooCommerce Payments and Jetpack are activated, carts created as a guest are cleared when logging in on the checkout page.
Deactivating either plugin fixes the issue.
To Reproduce
Actual behavior
Logging in at checkout clears the cart and both the
woocommerce_cart_hash
andwoocommerce_items_in_cart
cookies.Expected behavior
I expected the cart contents to persist after logging in at checkout.
Additional context
System Status
Found in 5913108-zen This may be related to the enhancement request here: https://github.com/Automattic/jetpack/issues/25479 This is also likely the root issue in this forum thread and potentially others: https://wordpress.org/support/topic/cart-clears-when-customer-logins/