Email confirmation after payment

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
IOU42
Posts: 26
Joined: 25 Jun 2016, 21:10

Email confirmation after payment

Post by IOU42 » 17 Jul 2016, 10:28

Hi!

The Aimeos shop is working well, but I have not been able to get the email confirmation working after payment and delivery. I have added the email settings below client in shop.php (in the config dir) as per below, but no emails are sent.

Added in shop.php:

Code: Select all

'client' => array( 
        'html' => array(
            'common' => array(
                'content' => array(
                    'baseurl' => '***',
                ),
                'template' => array(
                    'baseurl' => public_path('packages/aimeos/shop/elegance'),
                ),
            ),
            'email' => array(
                'from-email' => '***@***',
                'from-name' => '***',
            ),
        ),
    ),
I have read the documentation, and guess it might have to do with controllers or decorators, but I do not understand exactly the steps to follow to configure this. To me the email confirmation is quite a standard functionality. I would really appreciate it if you could specify the steps to follow.

Have a great day!

System info:
Running Aimeos Laravel: 2022.10
Laravel Framework 9.52
Almalinux
PHP 8.1

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

Re: Email confirmation after payment

Post by aimeos » 17 Jul 2016, 15:24

Do you execute the order/email/payment job regularly via a cronjob?
https://aimeos.org/docs/Laravel/Configu ... jobs#Setup
https://aimeos.org/docs/Laravel/Configu ... ery_minute

Code: Select all

php artisan aimeos:jobs order/email/payment
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

IOU42
Posts: 26
Joined: 25 Jun 2016, 21:10

Re: Email confirmation after payment

Post by IOU42 » 17 Jul 2016, 18:07

Thanks, ok yes that could be a way to handle it, but can the order itself not trigger the email. I would prefer not to run cron jobs every minute on the server.

System info:
Running Aimeos Laravel: 2022.10
Laravel Framework 9.52
Almalinux
PHP 8.1

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

Re: Email confirmation after payment

Post by aimeos » 17 Jul 2016, 20:45

You can run it every five, fifteen or sixty minutes if you like but Aimeos offloads sending e-mails to another process. We did it after the order has been placed years ago but that resulted too often in no e-mails being sent or e-mails sent twice due to payment updates. Thus the requirement for a cronjob like in every other modern e-commerce system.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

IOU42
Posts: 26
Joined: 25 Jun 2016, 21:10

Re: Email confirmation after payment

Post by IOU42 » 18 Jul 2016, 08:54

OK, will go for the cron job and align to the new best practices ;)

Cheers!

System info:
Running Aimeos Laravel: 2022.10
Laravel Framework 9.52
Almalinux
PHP 8.1

Post Reply