custom payment mail

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!
columbo
Advanced
Posts: 137
Joined: 09 Oct 2019, 09:42

custom payment mail

Post by columbo » 17 Sep 2023, 10:49

Hi,

I'd like to customize the standard payment mail.

I copied html.php
from: vendor/aimeos/ai-controller-jobs/templates/order/email/payment
to: packages/<my-extension>/templates/order/email/payment/html
and adapted to my requirements.

in shop.php:

Code: Select all

'controller' => [
    'jobs' => [
      'order' => [
        'email' => [
          'payment' => [
            'template-html' => 'order/email/payment/html',
          ],
        ],
      ],
    ],
  ],
]

Unfortunately my new html.php is not taken into account. (cache already cleard etc.)
When I copy html.php to vendor/aimeos/ai-controller-jobs/templates/order/email/payment it is working as expected - so the html.php is fine.

Whats wrong?- Why is the html.php not recognized in my extension directory? Also tried without /html subdirectory, but no effect.

Thank you

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

Re: custom payment mail

Post by aimeos » 17 Sep 2023, 15:07

The controller/jobs templates must be in "packages/<my-extension>/templates/controller/jobs/order/email/payment/html" if you don't change their location in the manifest.php file of your extension.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

columbo
Advanced
Posts: 137
Joined: 09 Oct 2019, 09:42

Re: custom payment mail

Post by columbo » 18 Sep 2023, 20:49

manifest.php is unchanged:

Code: Select all

'controller/jobs/templates' => [
  'templates/controller/jobs',
],
ok, I put html.php in
/packages/<my-extension>/templates/controller/jobs/order/email/payment/html
but no effect - still template form vendor/aimeos/ai-controller-jobs/.. is used

I flushed cache with:

Code: Select all

php artisan config:cache
php artisan config:clear
php artisan aimeos:clear
anything missing?

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

Re: custom payment mail

Post by aimeos » 18 Sep 2023, 21:39

It's only:

Code: Select all

/packages/<my-extension>/templates/controller/jobs/order/email/payment/html.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply