• Since updating to 4.0.1 I’m sometimes getting double New Order emails. That’s not too bad. But today when I got a gift card order the gift card was generated and sent out twice with different gift card codes.
    I’ve updated to 4.0.2 today and will monitor this issue.
    Anybody else seen this?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hey Ben,

    Does this only happen with Stripe, or have you tested this with other gateways as well? Are multiple orders generated or just a single one?

    Thread Starter Ben Andersen

    (@ben72)

    It has only happened with Stripe so far. And it does not happen for all Stripe orders. Only one order is created but multiple New order emails are sent out.

    Praveen a11n

    (@spraveenitpro)

    Automattic Happiness Engineer

    Hi @ben72,

    Do you have any caching enabled for your store? CAn you ensure that there is no caching for the cart and checkout pages? often times caching can cause certain events like mails to getting repeated. Also, who are you hosting with?

    Cheers!

    Thread Starter Ben Andersen

    (@ben72)

    Thank you @praveen,

    I have WP Rocket and it says in the documentation: “As of version 2.4 of WP Rocket, the cart, checkout and ‘my account’ pages are auto-excluded from the cache for WooCommerce, Easy Digital Download, iThemes Exchange, Jigoshop, and WP-Shop.”

    This is the kind of account I’m on, https://translate.google.com/translate?sl=sv&tl=en&js=y&prev=_t&hl=sv&ie=UTF-8&u=https%3A%2F%2Fwww.oderland.se%2Fwebbhotell%2Fpremium%2F&edit-text=&act=url

    It never happened before I updated to 4.0.1. I’m on 4.0.3 now. I’ll let you know if this happens again.

    Kind regards.

    Praveen a11n

    (@spraveenitpro)

    Automattic Happiness Engineer

    Hi @ben72,

    Let me know if you are still seeing the double new order emails issue, most likely it is some server/caching issue,

    Cheers!

    Thread Starter Ben Andersen

    (@ben72)

    Hello @praveen,

    I haven’t seen that issue again since updating to the latest dot version of the plugin. Another issue now though is that for all orders using Stripe I get a failed New Order email to the shop admin, sometimes two emails. It’s followed by a successful New order email.

    I’ve just updated the Stripe API from 2015-10-16 to the latest (2017-12-14). Maybe that will make a difference.

    Thanks!

    Thread Starter Ben Andersen

    (@ben72)

    The error seems to be a 400 invalid_request_error, “The source you provided is not in a chargeable state.”

    For all purchases there seems to be:
    1. 200 OK POST /v1/sources
    2. 200 OK POST /v1/sources
    3. 200 OK POST /v1/charges
    4. 400 ERR POST /v1/charges

    And this results in a failed New Order email and then a successful New Order email from Woocommerce.

    Thanks!

    Thread Starter Ben Andersen

    (@ben72)

    @spraveenitpro The issue seems to be resolved after updating to plugin version 4.0.4! 🙂

    Maybe it was fixed by this in the changelong, “Fix – Possible fix for duplicate charges due to webhook and redirect handler firing at the same time by adding delay to the webhook process.”

    Now I’ve updated to 4.0.5 and crossing my fingers! 🙂

    Thread Starter Ben Andersen

    (@ben72)

    @spraveenitpro now on 4.0.5 I’m seeing double New order and Order confirmations to the customer. :/

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

The topic ‘Double new order emails’ is closed to new replies.