Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter eternal8pcurr

    (@eternal8pcurr)

    I do see the email templates in the /includes file, however the email tool is coming up with “not found”

    Thread Starter eternal8pcurr

    (@eternal8pcurr)

    Now I copied those email templates into the woocommerce/emails folder and I see them coming up as found. But I am still not getting an email sent upon cancellation.

    Plugin Author Vikram S.

    (@jodhavishalsingh)

    yeah as I mentioned in FAQ section, there is no email hook till current woocommerce version but the woo developers has added the email hook in woocommerce version 3.1,

    so for now you have to edit the core woocommerce file if you want email functionality working.

    find these lines in woocommerce/woocommerce.php

    // Email Actions
    		$email_actions = array(
    			'woocommerce_low_stock',
    			'woocommerce_no_stock',
    			'woocommerce_product_on_backorder',
    			'woocommerce_order_status_pending_to_processing',
    			'woocommerce_order_status_pending_to_completed',
    			'woocommerce_order_status_pending_to_on-hold',
    			'woocommerce_order_status_failed_to_processing',
    			'woocommerce_order_status_failed_to_completed',
    			'woocommerce_order_status_completed',
    			'woocommerce_new_customer_note',
    			'woocommerce_created_customer'
    		);

    replace above lines with

    // Email Actions
    		$email_actions = apply_filters( 'woocommerce_email_actions', array(
    			'woocommerce_low_stock',
    			'woocommerce_no_stock',
    			'woocommerce_product_on_backorder',
    			'woocommerce_order_status_pending_to_processing',
    			'woocommerce_order_status_pending_to_completed',
    			'woocommerce_order_status_pending_to_cancelled',
    			'woocommerce_order_status_pending_to_on-hold',
    			'woocommerce_order_status_failed_to_processing',
    			'woocommerce_order_status_failed_to_completed',
    			'woocommerce_order_status_on-hold_to_processing',
    			'woocommerce_order_status_on-hold_to_cancelled',
    			'woocommerce_order_status_completed',
    			'woocommerce_new_customer_note',
    			'woocommerce_created_customer'
    		) );

    Thanks

    Plugin Author Vikram S.

    (@jodhavishalsingh)

    Version 1.3 is released, make the above changes for core file and update your WC Cancel Order plugin version.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘sending out email’ is closed to new replies.