• Resolved t_ryan

    (@t_ryan)


    Hi,
    According to this page from JigoShop:
    https://www.jigoshop.com/documentation/disable-automatic-emails-order-status-updates/

    It says I can disable certain emails by adding lines to the functions.php file in my theme.

    I tried with the following lines:

    remove_action(‘order_status_pending_to_processing’, ‘jigoshop_new_order_notification’);
    remove_action(‘order_status_pending_to_completed’, ‘jigoshop_new_order_notification’);
    remove_action(‘order_status_pending_to_on-hold’, ‘jigoshop_new_order_notification’);
    remove_action(‘order_status_pending_to_processing’, ‘jigoshop_processing_order_customer_notification’);
    remove_action(‘order_status_pending_to_on-hold’, ‘jigoshop_processing_order_customer_notification’);
    remove_action(‘order_status_waiting-for-payment_to_processing’, ‘jigoshop_new_order_notification’);
    remove_action(‘order_status_waiting-for-payment_to_processing’, ‘jigoshop_processing_order_customer_notification’);
    remove_action(‘order_status_completed’, ‘jigoshop_completed_order_customer_notification’);

    This does not work for me, as I still get all the usual emails when adjusting an order. Is there some trick to this? Does it only work for new orders or something? I’m using Jigoshop v1.17.7

    I want to disable emails particularly when going from waiting-for-payment to processing and the admin notification when an order goes to processing.

    Thanks and regards

    https://ww.wp.xz.cn/plugins/jigoshop/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi t_ryan,

    Wich theme are you using. Sometimes you need to edit
    your-theme/includes/functions.php file

    Thread Starter t_ryan

    (@t_ryan)

    Hi
    The theme is a custom theme that I believe is based originally off Twenty Ten. There’s an includes folder but no functions.php file. What is inside the includes oflder is a file called jigoshop.php inside of the includes folder of the theme. It has a bunch of custom actions and such for jigoshop, so I added these remove_action commands there, and that did nothing.

    Are there any further suggestions to disable these emails?

    Thread Starter t_ryan

    (@t_ryan)

    I’ve found that the lines that seem to be causing me problems are the lines inside the file jigoshop_emails.php inside the plugin folder.

    On line 50 or so, there’s the add_action lines that add the email actions.

    add_action(‘order_status_pending_to_processing’, $jigoshopOrderEmailGenerator(‘pending_to_processing’));
    add_action(‘order_status_pending_to_completed’, $jigoshopOrderEmailGenerator(‘pending_to_completed’));
    add_action(‘order_status_pending_to_on-hold’, $jigoshopOrderEmailGenerator(‘pending_to_on-hold’));
    add_action(‘order_status_pending_to_waiting-for-payment’, $jigoshopOrderEmailGenerator(‘pending_to_waiting-for-payment’));
    add_action(‘order_status_waiting-for-payment_to_processing’, $jigoshopOrderEmailGenerator(‘waiting-for-payment_to_processing’));
    add_action(‘order_status_on-hold_to_processing’, $jigoshopOrderEmailGenerator(‘on-hold_to_processing’));
    add_action(‘order_status_completed’, $jigoshopOrderEmailGenerator(‘completed’));
    add_action(‘order_status_refunded’, $jigoshopOrderEmailGenerator(‘refunded’));

    I want to remove the actions defined in the lines:
    add_action(‘order_status_pending_to_processing’, $jigoshopOrderEmailGenerator(‘pending_to_processing’));
    add_action(‘order_status_waiting-for-payment_to_processing’, $jigoshopOrderEmailGenerator(‘waiting-for-payment_to_processing’));

    I tried using the lines I specified in my first entry in this thread, and it doesn’t seem to do anything. I tried just commenting out the two actions from the plugin and it worked, but I don’t want to hack the plugin.

    What is the proper way?

    Thanks and regards

    Hi,

    The remove actions you need to add only in your-theme/functions.php file,
    Could you send us a temporary admin access and FTP access as well, so we could take a quick look at you files, to let you know none of your settings will be changed. We only take a look if the remove actions are added properly.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Disable emails’ is closed to new replies.