• Resolved axelra82

    (@axelra82)


    So this is becoming a problem for us because customers are now asking on a daily basis if their order went thru.

    I don’t know exactly when, but a couple of weeks ago customers started reporting that they didn’t get their order confirmation email. At first I chalked it up to people just not checking their spam folder. But it turns out, after a lot of testing and logging (both WP Mail Log, where I can see that all other emails are created and sent, and I’ve also tried SMTP plugins, which was actually not even a problem. Since the processing emails aren’t created by woocommerce anymore), that the customers are right (which they always are, little sales humor hehe)… when creating a new order the automatic “your order is now being processed email” isn’t created anymore. Canceled, completed etc (and in fact, all other WP mail) is being created and sent just fine, just not the initial processing email. This is confusing to many customers.

    I’ve put the question out but still haven’t been able to get a handle on why this is happening and how to resolve it.

    I really need help finding a solution to this ASAP!

    Woocommerce 3.1.1

    Links to other places I’ve asked the question:
    https://stackoverflow.com/questions/45444163/woocommerce-processing-email-not-auto-sending
    https://wordpress.org/support/topic/woocommerce-processing-order-not-sending-automatically/#post-9373338

    • This topic was modified 6 years, 8 months ago by axelra82.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    You should check /var/log/mail.log on your server. There should be a record.

    Thread Starter axelra82

    (@axelra82)

    I checked with my service provider and there isn’t anything there… which stands to reason, since the “Thank you for your order” email isn’t created, there wouldn’t be anything in an email log. There is no email to log 😉
    Again, all emails are created and sent just fine, with the exception of the initial processing email.
    It’s worth pointing out that when using the action button to resend the order receipt on the order page, it does go out just fine. However, this has to be automated (as it was before) since we can’t be going in every minute on each new order and click re-send receipt.

    Thread Starter axelra82

    (@axelra82)

    Just wanted to note that this issue has been resolved.
    The problem was a function in our functions.php
    More specifically this one:

    /*
    * Show prices with zero decimals on the catalogue and product pages.
    * @param int decimals The number of decimals passed by WooCommerce.
    * @return int The number of decimals used to show the price.
    * @author Aelia
    */
    function woocs_subzero($decimals) {
    if(!is_admin() || defined(‘DOING_AJAX’)) {
    // Set zero decimals everywhere for all currencies except [BASE_CURRENCY], and on all pages except cart and checkout
    if( ( get_woocommerce_currency() !== ‘SEK’ ) && !is_cart() && !is_checkout() ) {
    return 0;
    }
    }
    return $decimals;
    }add_filter(‘pre_option_woocommerce_price_num_decimals’, ‘woocs_subzero’, 50, 2);

    This was to force the Aelia currency converter plugin to display all prices without trailing zeros. This has worked before but I believe it was in conflict with another filter we had active
    //Trim zeros in price decimals
    add_filter( ‘woocommerce_price_trim_zeros’, ‘__return_true’ );

    So in conclusion, removing the the former function and only using the later filter works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Processing email not created/sent’ is closed to new replies.