Home Forums WoodMart support forum Abandoned cart feature development

Abandoned cart feature development

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #643542

    Ecommerce
    Participant

    Hello,

    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.

    #643749

    Artem Temos
    Keymaster

    Hello,

    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

    #644037

    Ecommerce
    Participant

    I am sharing the order number and steps in the private section so you can review the sample order.

    #644512

    Artem Temos
    Keymaster

    It looks like a conflict with the plugin. Could you please create a staging website and send us your FTP so we can troubleshoot this?

    #645752

    Ecommerce
    Participant

    I am sending information in private area

    #646157

    Ecommerce
    Participant

    Were you able to check?

    #646187

    joelmellin
    Participant

    We 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.
    #646223

    milton
    Participant

    I 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.

    #646432

    Artem Temos
    Keymaster

    During 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 the woocommerce_email_attachments hook is indeed an instance of the WC_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?

    #646436

    joelmellin
    Participant

    “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.

    #646442

    Ecommerce
    Participant

    I will forward the information you provided about the application conflict to the plugin owner.

    I agree with the situation reported by user joelmellin.

    #647088

    Artem Temos
    Keymaster

    Hello,

    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

    #647092

    Ecommerce
    Participant

    Can 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.

    #647220

    Artem Temos
    Keymaster

    We will consider adding such an option in our future updates.

Viewing 14 posts - 1 through 14 (of 14 total)