Home › Forums › WoodMart support forum › Abandoned cart feature development
Abandoned cart feature development
- This topic has 13 replies, 4 voices, and was last updated 1 month, 2 weeks ago by
Artem Temos.
-
AuthorPosts
-
March 6, 2025 at 5:10 pm #643542
EcommerceParticipantHello,
We have activated the abandoned cart feature on the new theme’s cart-checkout page and set it to a minimum of 2 hours. However, it is sending cart reminder emails to almost every customer who places an order. This issue needs to be urgently fixed and improved.
I’m not sure what the exact problem is, but a rule should be implemented to prevent the reminder email from being triggered if the customer has placed any order within the last 24 hours using the same email.
March 7, 2025 at 10:50 am #643749
Artem TemosKeymasterHello,
Could you please write a step by step instruction now how to reproduce the issue on your website? Also send us your admin access so we can check it.
Kind Regards
March 8, 2025 at 8:54 am #644037
EcommerceParticipantI am sharing the order number and steps in the private section so you can review the sample order.
March 10, 2025 at 3:40 pm #644512
Artem TemosKeymasterIt looks like a conflict with the plugin. Could you please create a staging website and send us your FTP so we can troubleshoot this?
March 13, 2025 at 10:07 pm #645752
EcommerceParticipantI am sending information in private area
March 15, 2025 at 9:33 pm #646157
EcommerceParticipantWere you able to check?
March 16, 2025 at 12:36 pm #646187
joelmellinParticipantWe also have the exact same problem. It send reminders to people that have already made a purchase with the same products two days earlier. We have the cart timeout setting on 2 days.
Also, it is sending reminders to people that are not listed in the abandonded cart list in the back end products – abandoned carts.
-
This reply was modified 1 month, 2 weeks ago by
joelmellin.
March 16, 2025 at 7:56 pm #646223
miltonParticipantI have the same problem. They send notifications to people who already purchased something. It’s incredibly inconvenient. Please patch it later, as it’s a really good feature.
March 17, 2025 at 2:04 pm #646432
Artem TemosKeymasterDuring testing, we discovered a conflict with the WooCommerce Sipariş Sözleşmeleri Pdf plugin – https://monosnap.com/file/qJiB98HSOBENR5IdtV0KpqV5hHyKpJ. To fix this, contact their support team and ask them to add a check in the
Korkmaz_contract_Public::siparis_mail_ekle()
method to verify whether the third argument of thewoocommerce_email_attachments
hook is indeed an instance of theWC_Order
class – https://monosnap.com/file/nLfhlcnH2k3CFyiMtAVTQUQJJ81QcS. Alternatively, you can disable this option – https://monosnap.com/file/umSh7TNzbrcOepuSLLy7m3Ri6pa7r6.Regarding your issue, I’d like to clarify what you mean when you say that the reminder is sent to all customers who place an order. Are you saying that after placing an order, the customer adds another product to the cart and abandons it, after which an email is sent with the new cart? Or do you mean that after placing an order, the customer receives an email with information about the same cart they just ordered?
March 17, 2025 at 2:11 pm #646436
joelmellinParticipant“Or do you mean that after placing an order, the customer receives an email with information about the same cart they just ordered?”
Yes, this is the case for us.
March 17, 2025 at 2:33 pm #646442
EcommerceParticipantI will forward the information you provided about the application conflict to the plugin owner.
I agree with the situation reported by user joelmellin.
March 19, 2025 at 11:08 am #647088
Artem TemosKeymasterHello,
We still can’t reproduce the issue on our end. Please add the following code to the functions.php file in the child theme and test how it works. Let me know if it helps
if ( ! function_exists( 'woodmart_remove_abandoned_cart' ) ) { function woodmart_remove_abandoned_cart( $order_id ) { if ( ! woodmart_get_opt( 'cart_recovery_enabled' ) ) { return; } $cart_id = false; if ( is_user_logged_in() ) { $carts = get_posts( array( 'post_type' => 'wd_abandoned_cart', 'posts_per_page' => 1, 'meta_query' => array( // phpcs:ignore. array( 'key' => '_user_id', 'value' => get_current_user_id(), 'compare' => 'LIKE', ), ), ) ); if ( ! empty( $carts[0] ) ) { $cart_id = $carts[0]->ID; } } elseif ( isset( $_COOKIE['woodmart_guest_cart'] ) && ! empty( $_COOKIE['woodmart_guest_cart'] ) ) { $cart_id = get_post( $_COOKIE['woodmart_guest_cart'] ); // phpcs:ignore. } if ( $cart_id ) { wp_delete_post( $cart_id ); } } add_action( 'woocommerce_checkout_update_order_meta', 'woodmart_remove_abandoned_cart' ); }
Kind Regards
March 19, 2025 at 11:15 am #647092
EcommerceParticipantCan you add a feature like this to the area where the cart reminder setting is enabled in the theme?
For example, if the “Cart Timeout” period is set to 2 hours, the system can check whether an order has been placed using the same email address within the last 2 hours before triggering the email. If an order has been placed with the same email address in the past 2 hours, the reminder email should not be sent.
March 19, 2025 at 3:16 pm #647220
Artem TemosKeymasterWe will consider adding such an option in our future updates.
-
This reply was modified 1 month, 2 weeks ago by
-
AuthorPosts
- You must be logged in to create new topics. Login / Register