Page 1 of 1

Emailtemplate

Posted: 09 Nov 2017, 17:49
by mantik
Hello

i would to add logo and own Styles on each Email.

for Example i see this in the template:

Code: Select all

 <?= $this->get( 'htmlCss' ); ?>
But where to define it?

i also add the logo to my Typoscript

Code: Select all

plugin.tx_aimeos.settings.client.html.email.logo = https://www.domain.com/fileadmin/template/images/logo.png
But it dosent appear.

What is the correct path to the Orderemails? Payment?

Is it possible to send the Email direct after order (no Cronjob)

Re: Emailtemplate

Posted: 09 Nov 2017, 21:59
by aimeos
mantik wrote: i would to add logo and own Styles on each Email.
for Example i see this in the template:

Code: Select all

 <?= $this->get( 'htmlCss' ); ?>
But where to define it?
The Logo and CSS is added here for example:
https://github.com/aimeos/ai-client-htm ... d.php#L272
mantik wrote: i also add the logo to my Typoscript

Code: Select all

plugin.tx_aimeos.settings.client.html.email.logo = https://www.domain.com/fileadmin/template/images/logo.png
But it dosent appear.
What is the correct path to the Orderemails? Payment?
The logo must be a relative or (better) absolute path as you can see here (no URL):
https://github.com/aimeos/ai-client-htm ... d.php#L261
mantik wrote: Is it possible to send the Email direct after order (no Cronjob)
No that's not possible. We had this in the beginning and it led to e-mail being sent several times because customer made a page reload on the confirmation page or the payment provider was sending status updates later.

Re: Emailtemplate

Posted: 12 Nov 2017, 06:29
by mantik
I add this but it dosent work:
fileadmin/template/images/logo.png

and its possible to add by the Email own css-path per TS?

Re: Emailtemplate

Posted: 12 Nov 2017, 11:32
by aimeos
mantik wrote:I add this but it dosent work:
fileadmin/template/images/logo.png
The path is relative to your Aimeos extension as you can see in the code. Or use an absolute path.
mantik wrote:and its possible to add by the Email own css-path per TS?
The file that is included is always the common.css file but you can add you own CSS code to the template, e.g. in
https://github.com/aimeos/ai-client-htm ... efault.php

Re: Emailtemplate

Posted: 14 Nov 2017, 13:56
by mantik
Dosen't work. Wherever i put the files in.
lets say my extensions name is amios_ext.

Where must the logo be and what are the settings i must set in the path.

Re: Emailtemplate

Posted: 14 Nov 2017, 21:14
by aimeos
Here's the code that includes the logo:
https://github.com/aimeos/ai-client-htm ... d.php#L261