Emailtemplate

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
mantik
Posts: 89
Joined: 23 Oct 2017, 05:56

Emailtemplate

Post 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 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)

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

Re: Emailtemplate

Post 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-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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mantik
Posts: 89
Joined: 23 Oct 2017, 05:56

Re: Emailtemplate

Post 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?

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

Re: Emailtemplate

Post 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-htm ... efault.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mantik
Posts: 89
Joined: 23 Oct 2017, 05:56

Re: Emailtemplate

Post 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.

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

Re: Emailtemplate

Post by aimeos » 14 Nov 2017, 21:14

Here's the code that includes the logo:
https://github.com/aimeos/ai-client-htm ... d.php#L261
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply