Page 1 of 1

Delivery status - status email problem

Posted: 08 Nov 2016, 05:19
by alfredlaggner
I would like to inform my customer about the status of the delivery, so they can come to the store when the delivery is ready to be picked up.

I am overwriting my status emails with my own texts but I have trouble sending the correct email.
Here is my setting:

Code: Select all

                'delivery' => [
                    'html' => [
                        'intro' => [
                            'standard' => [
                                'template-body' => [
                                    3 => 'email/delivery/4/html-intro-body-reefside.php',
                                    2 => 'email/delivery/3/html-intro-body-reefside.php',
                                    1 => 'email/delivery/1/html-intro-body-reefside.php',
                                    0 => 'email/delivery/html-intro-body-reefside.php'
                                ]
                            ]
                        ]
                    ],
I put the emails into the folders like this:
email tree.PNG
email tree.PNG (21.52 KiB) Viewed 1589 times
When I manually change my status in admin -> order I do get an email every time after one minute but it is always the top email from the list above. (I have switched the order several times during tests). From your documentation, it is not clear for me how to configure correctly to send correct emails for more the selected status.

Thank you for your support!

Re: Delivery status - status email problem

Posted: 08 Nov 2016, 13:23
by aimeos
It's much simpler and you don't need any configuration. Only copy the intro templates into your own Aimeos extension using the same name (e.g. html-intro-body-default.php) and directory structure and adapt the templates to your needs.

If you name your templates different and configure the new name it's more difficult because the automatic template selection based on the status won't work in this case.