Critical Logic Issue in Cart Recovery Process
-
Hello Mailchimp Team,
I would like to bring to your attention a critical logic issue we’ve encountered with the Mailchimp for WooCommerce plugin, specifically regarding the cart recovery process.
The issue arises with certain payment methods, such as Paddle, which generate a new order before the payment is confirmed. Here’s a breakdown of the problem:
- Order Creation Before Payment Confirmation: Payment gateways like Paddle create an order as soon as the user initiates the checkout process, even before the payment is completed. This order creation triggers your plugin to send a cart recovery email to the user.
- Cart Recovery Email Sent Prematurely: The plugin sends recovery emails based on the assumption that the order has not been completed. However, since an order is technically created (but not yet paid for), the plugin mistakenly sends recovery emails even though an order exists.
- Invalid Recovery Cart Links: Once the payment gateway triggers the “order created” hook, the plugin deletes the cart, as it assumes the order is completed. However, this doesn’t stop the previously sent recovery email. As a result, users receive recovery emails with invalid cart links because the cart has already been deleted.
Proposed Solutions:
- Remove Recovery Emails for Orders Created: The plugin should call the Mailchimp API to remove any recovery emails queued or sent to users who have created an order, regardless of whether the payment has been completed or not.
- Prevent Cart Deletion Until Payment Confirmation: Alternatively, the plugin should delay the deletion of the cart until the payment is fully confirmed, ensuring that the recovery email is only sent if the order is genuinely abandoned.
Implementing either of these solutions should resolve the issue and prevent users from receiving emails with invalid recovery cart links, thereby improving the user experience and reducing confusion.
Thank you for addressing this matter. We look forward to your prompt resolution.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.