Viewing 15 replies - 1 through 15 (of 48 total)
  • What Woocommerce version do you have?
    Do you have low stock notification enabled?
    Do other emails come correctly?
    Are your product stock statuses correct?

    Thread Starter Mvdw

    (@mvdw)

    I have the latest version with all the updates. And yes I have low stock enabled. The other emails come correctly. What do you mean bij stock statuses are correct? Where can I find this?

    The strange thing is that it has always worked but since a few updates ago not anymore.

    Check the stock status of your products, if the numbers are correct. Maybe the update changed them.

    Thread Starter Mvdw

    (@mvdw)

    The numbers are all correct, nothing changed, so what can I do to solve this?

    It does not seem to be a Woocommerce bug. I tested both low stock and out of stock. And e-mails where sent correctly.

    What payment gateway are you using? Does it happen to all of them?

    Thread Starter Mvdw

    (@mvdw)

    Payment gateway by Multisafepay. Almost by all products but only a few seems to work correctly. Do I have to ask the template designer? Or the payment gateway plugin designer?

    Are you using the gateway from here https://www.multisafepay.com/solutions/shop-plug-ins/detail/plugins/woocommerce/
    I am seeing in their gateway they have commented out the
    $order->reduce_order_stock(); command.

    Without this command I believe stock statuses are not lowered when payment is made, so you can try and contact them .

    Thread Starter Mvdw

    (@mvdw)

    Oke many thank, I’ll contact them.

    Another question: since the latest Woocommerce update I had to overwrite my template emails. Now when I update the status of an order I get a blank screen (but the status changed). How can I solve this or what did I do wrong?

    If you use the stock email templates is everything working fine?
    Maybe there is an error in the email templates you used.
    You should enable wp_debug to see what is happening https://www.ads-software.com/support/topic/how-to-debug-issues-after-updates

    Thread Starter Mvdw

    (@mvdw)

    I didn’t change the stock email templates so that should work fine.

    Oke now I enabled the WP-debug mode in Wp-config. What to do now? I haven’t got any experience with it….

    What did you overwrite?
    Test again and see the output and the log files.

    Thread Starter Mvdw

    (@mvdw)

    I overwrite some customer emails in the template file and there I change some custom translations. Was that wrong?

    Thread Starter Mvdw

    (@mvdw)

    I just overwrite the emails again, I’ll test it now.

    But for the problem with the email of low stock I had contact with the payment provider and the let me know the following:

    We disabled the the following line:

    $order->reduce_order_stock();

    In favor of:

    $order->payment_complete();

    As this is how the WooCommerce API documentation describes how the order should be updated after a completed payment. The $order->payment_complete(); should update the order and modify the stock:
    https://docs.woothemes.com/document/payment-gateway-api/

    When looking at some completed orders that used iDEAL as a payment method, I can see that this should work as expected, as the orders show lines like:
    Item #5633 voorraad verlaagd van 2 naar 1 –> Translated its something like: Item #5633 stock lowered from 2 to 1.

    So it looks like our payment plugin does handle the updates correctly, but somewhere WooCommerce does not really process the updates? Maybe you can ask the guys at WooCommerce if they can check this, as this is something we can’t help you with.

    Please what to do now?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Mvdw while you are testing this you should remove your email modifications – you may be causing issues yourself.

    Next, ensure the stock emails are actually enabled in the email settings, and check the recipient it correct (as these emails can be set to have a different recipient).

    Finally, for more reliable email sending I recommend using both;

    https://mandrillapp.com/
    https://www.ads-software.com/plugins/wp-mail-smtp/

    Mandrill is free and includes a send log. Can help debugging.

    Thread Starter Mvdw

    (@mvdw)

    No the problem was before I tested myself so I don’t think I cause the problem myself.

    And yes the emailsettings are enabled, that was the first thing I checked.

    Did you read my message about Multisafepay?

Viewing 15 replies - 1 through 15 (of 48 total)
  • The topic ‘No email low stock’ is closed to new replies.