Email Notification not working when order Placed

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Email Notification not working when order Placed

Post by aimeos » 28 Apr 2020, 06:56

You have no orders placed, so no e-mails will be sent!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
SamKbizsoft
Posts: 15
Joined: 14 Apr 2020, 13:05

Re: Email Notification not working when order Placed

Post by SamKbizsoft » 28 Apr 2020, 13:53

Actually order was deleted thats why mshop tables showing blank.

Now I created Test order over website. Here is the Mshop Tables Screenshots given below:

mshop_order_status : https://prnt.sc/s7ewu7
mshop_order : https://prnt.sc/s7exwe

Now Order placed over website but still email received. Please check and let me know your words.

Thank you

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Email Notification not working when order Placed

Post by aimeos » 29 Apr 2020, 09:24

The payment status of your order is unfinished (-1), so no order confirmation e-mail will be sent. They are only sent for status 5 and 6 (authorized and received)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
SamKbizsoft
Posts: 15
Joined: 14 Apr 2020, 13:05

Re: Email Notification not working when order Placed

Post by SamKbizsoft » 30 Apr 2020, 04:28

Is there any possible way to send email when order created without payment?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Email Notification not working when order Placed

Post by aimeos » 01 May 2020, 07:14

No, you need a payment service to change payment status, even if it's only a fake payment option with the provider "PostPay" that you doesn't show in the checkout (hidden by CSS) but added to the basket.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
SamKbizsoft
Posts: 15
Joined: 14 Apr 2020, 13:05

Re: Email Notification not working when order Placed

Post by SamKbizsoft » 08 May 2020, 09:08

I tested order with Post pay Method and didn't get any email after place order. Please check at https://prnt.sc/sd236f

Here is the some screenshots after Set Post Paymenthod over website.

Payment Activated : https://prnt.sc/sd236f
mshop_order Table : https://prnt.sc/sd2bs3
Orders : https://prnt.sc/sd2cpu
Logs : https://prnt.sc/sd2dmm


Please let me know how we can fix this issue.

Thank you

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Email Notification not working when order Placed

Post by aimeos » 09 May 2020, 09:31

The order table still doesn't show an order with a payment status of 5 or 6 so no e-mails are sent: https://prnt.sc/sd2bs3
Your service configuration seems to be correct and should set the payment status to 5 if you place an order in the frontend when "Invoice" as payment method is selected.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
SamKbizsoft
Posts: 15
Joined: 14 Apr 2020, 13:05

Re: Email Notification not working when order Placed

Post by SamKbizsoft » 12 May 2020, 14:12

Hello

Thank you for your valuable time. I updated 5 value to mshop_table through cron and email working for customer.

But need to send notification email to admin as well. I used some typo script here but didn't get any notification after place order. Please check at https://prnt.sc/sfdyks

Please let me know the solution as well

Thank you

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Email Notification not working when order Placed

Post by aimeos » 14 May 2020, 08:14

That should work according to the code:
https://github.com/aimeos/ai-client-htm ... #L276-L303

You can try to use

Code: Select all

client.html.email.payment.bcc-email = info@casmart.ch
instead but both should work and has worked in the past for other users.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply