Customizations: Checkout-steps / Mails

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!
kranzfr3d
Posts: 12
Joined: 15 Nov 2018, 11:41

Customizations: Checkout-steps / Mails

Post by kranzfr3d » 27 Nov 2018, 21:00

Hi,

the following things I want to archive:
during checkout step 2: Adress
Fields: Country, Language
How can I remove (hide) or force them to a value?

during checkout step 5:
Changing the line "I accept..."

mails:
How to change the bodies/topics auf the following mails, which are sent by aimeos:
- New user account
- Your order
The images are very big/unformated and words are needed to change ;-)


gr33tz

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

Re: Customizations: Checkout-steps / Mails

Post by aimeos » 28 Nov 2018, 23:41

- To adapt the checkout, read these articles: https://aimeos.org/docs/TYPO3#Checkout
- For overwriting translations have a look here: https://aimeos.org/docs/TYPO3/Overwrite_translations
- Changing the e-mails is described there: https://aimeos.org/docs/TYPO3#E-Mail

That page has links to articles answering all your questions:
https://aimeos.org/docs/TYPO3
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

kranzfr3d
Posts: 12
Joined: 15 Nov 2018, 11:41

Re: Customizations: Checkout-steps / Mails

Post by kranzfr3d » 30 Nov 2018, 20:14

Hi,

sorry, I don't get it.
I read many pages, but I don't get a hint how to change the body of a mail sent by aimeos.
I think, I didn't get the right TS with that array-subpart-stuff. Kindly provide some codelet how to change a body of a mail, for example the password-mail-body in html from account-creation.
The checkout I modified that way, that theres only one country, but I didnt get that language-field hidden:

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.address.countries {
     56 = DE
     # Germany
}
gr33tz

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

Re: Customizations: Checkout-steps / Mails

Post by aimeos » 03 Dec 2018, 09:26

In TYPO3, the most common problem is that you add the settings for changing the e-mails to your TS template but TYPO3 distingusishes between FE, BE and scheduler configuration. So, you have to add the e-mail related configuration to the TS field of the scheduler task, e.g. use https://aimeos.org/docs/Configuration/C ... plate-body:

Code: Select all

client.html.email.payment.html.standard.template-body = path/to/your/template
Regarding the hidden language field: Did you use https://aimeos.org/docs/Configuration/C ... ing/hidden in your TS template:

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.hidden {
  0 = order.base.address.languageid
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

kranzfr3d
Posts: 12
Joined: 15 Nov 2018, 11:41

Re: Customizations: Checkout-steps / Mails

Post by kranzfr3d » 03 Dec 2018, 20:42

aimeos wrote:So, you have to add the e-mail related configuration to the TS field of the scheduler task
Hi,

thanks four your answer - thats a good point for sure, would be my mistake, too :oops:
But, I don't get the right code yet, because a can't adapt the settings for e.g. the e-mail/account - mail.
With your help in your posting before you helped me to figure out the templates of e.g. the mail-account-creation-code, located here:

Code: Select all

typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/templates/email/account
I changed the content of two files ("html-body-standard.php" and "text-body-standard.php") and copied the whole folder-content to another place:

Code: Select all

fileadmin/project/mail-templates/accountmail (hope it's a good location)
Could you please tell me the e-mail related configuration to the TS field (the dotted "client.html.email"-stuff) of the scheduler task of each folder:
  • account
  • common
  • delivery
  • payment
  • subscription
  • voucher
  • watch
which I found in "typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/templates/email"

Perhaps you're feeling like "bumping my head on onto the keyboard" - sorry, I'm feeling bad right now, that I'm not getting the right codelets (I'm still learning typo3/aimeos)! But https://aimeos.org/docs/Configuration/C ... plate-body does not offer them, isn't it?

But one good thing at the end:
I successfully used the following codelet:

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.hidden {
    0 = order.base.address.languageid
    1 = order.base.address.countryid
}
gr33tz

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

Re: Customizations: Checkout-steps / Mails

Post by aimeos » 04 Dec 2018, 15:28

How should Aimeos know it should use your template files are in /fileadmin/project/... ?

You have to
- create an Aimeos TYPO3 extension: https://aimeos.org/developer/extensions/
- copy the modified template into the ./Resources/Private/Extensions/<extname>/client/html/templates (same directory structure below that directory as in the ai-client-html extension) of your newly created TYPO3 extension
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply