Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4911 by mantik
09 Nov 2017, 17:49
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 allplugin.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)
#4917 by aimeos
09 Nov 2017, 21:59
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-html/blob/master/client/html/src/Client/Html/Email/Payment/Html/Standard.php#L272

mantik wrote:i also add the logo to my Typoscript
Code: Select allplugin.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-html/blob/master/client/html/src/Client/Html/Email/Payment/Html/Standard.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.
#4940 by mantik
12 Nov 2017, 06:29
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?
#4943 by aimeos
12 Nov 2017, 11:32
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-html/blob/master/client/html/templates/email/payment/html-body-default.php
#4971 by mantik
14 Nov 2017, 13:56
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.