When a customer places an order and selects to pay with bank transfer, the order status is set to 'Awaiting Payment', and they get an email notification immediately of the order they placed.

When they choose 'Cash on delivery' or 'Pay in Store', the order status is set to 'Awaiting Payment', but it never sends an email notification.

I also notice 'Paypal' paid orders which also are set to 'Awaiting Payment' until payment is registered from paypal when it gets automatically changed to 'Awaiting Fulfillment' status, also doesn't send notification emails.

Is the email notification triggered by the payment module?
In General
Friday, April 28 2017, 02:14 AM
Share this post:
Responses (7)
  • Accepted Answer

    Friday, April 28 2017, 03:35 PM - #Permalink
    It's triggered by order status, set in your stores settings, normally.
    Look at the checkout section: https://arastta.org/docs/user-manual/system/settings/option

    Also, if you search the forum and issues you'll find:
    https://arastta.org/forum/strange-email-problem#reply-1393
    https://github.com/arastta/arastta/issues/398
    https://github.com/arastta/arastta/pull/404#issuecomment-208938388

    I agree it's confusing ... ;)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 01 2017, 02:27 AM - #Permalink
    Ok so the first solution isn't any good. Nothing appears to have any settings related to new order emails.

    But this suggestion:

    Also, if you search the forum and issues you'll find:
    https://arastta.org/forum/strange-email-problem#reply-1393


    This does help.

    I fixed one of the payment methods, but the Paypal module has the same issue, but the code isn't quite the same.

                   $this->model_checkout_order->addOrderHistory($order_id, $order_status_id);
    } else {
    $this->model_checkout_order->addOrderHistory($order_id, $this->config->get('config_order_status_id'));
    }


    The coding is slightly different where they use $order_id and your solution uses data['order_id']
    I don't feel comfortable screwing around with it. This should be something that's fixed correctly and updated in the marketplace.

    I did try this but still didn't work:

    $this->model_checkout_order->addOrderHistory($order_id, $this->config->get('config_order_status_id'), ;;, true);
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 01 2017, 12:44 PM - #Permalink
    Breck Demers wrote:
    Ok so the first solution isn't any good. Nothing appears to have any settings related to new order emails.


    Denis Duliçi wrote:
    Thanks Rune for the PR. However, this will override the "Complete Order Status" in the Settings => Option tab. Notification emails are sent only if the order status matches one of the selected statuses there.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 01 2017, 02:56 PM - #Permalink
    Doesn't make much sense. The description for that setting says the status a order must be before downloadable content and gift vouchers are accessible.
    That would be after payment is received. Doesn't provide an email notice at the time where your still waiting for payment.

    Like I said, I have fixed the payment modules with your fix except the paypal module which still doesn't work.
    I tried tinkering with it last night but never got it to work.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 01 2017, 04:24 PM - #Permalink
    Did you actually care to read the content on the links provided, did you even care to read what I wrote above, especially the part in red text?

    Did you care to comment on the issue, to try to make a change?

    Did you care to propose a change for the docs?

    Did you care to propose a change for the language files?

    Please stop the nagging and try to make a change instead.

    Rune Rasmussen wrote:

    It's triggered by order status, set in your stores settings, normally.
    Look at the checkout section: https://arastta.org/docs/user-manual/system/settings/option

    Also, if you search the forum and issues you'll find:
    https://arastta.org/forum/strange-email-problem#reply-1393
    https://github.com/arastta/arastta/issues/398
    https://github.com/arastta/arastta/pull/404#issuecomment-208938388

    I agree it's confusing ... ;)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 02 2017, 01:35 AM - #Permalink
    Well I guess this forum isn't like all the other forums of applications where issues are brought up, discussed and help provided to find a solution to fix the problem for the entire community.

    Please delete my account and all my posts.
    I didn't think asking questions to problems with the cart would have people shit on by someone who is unprofessional.

    If this is your only person to provide support, I guess everyone will eventually get shit on.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 02 2017, 02:03 AM - #Permalink
    Please look in the mirror ...
    The reply is currently minimized Show
Your Reply