One email per voucher? => Collected voucher code email possible?

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!
rowild

One email per voucher? => Collected voucher code email possible?

Post by rowild » 15 Jan 2021, 20:38

Hi!

When a customer buys e.g. 10 vouchers, then 10 emails, each with a voucher code, will be sent to the customer.

Is there a way to send all the generated vouchers codes at once in one email only?

TYPO3 10.4.12, aimeos 20.10.x-dev, php 7.3

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

Re: One email per voucher? => Collected voucher code email possible?

Post by aimeos » 19 Jan 2021, 09:03

The voucher e-mails are meant for nicely styled e-mails to the end user as a gift. If you need to send all coupon codes at once, e.g. if you have a B2B site, then you need to extend the job controller and the HTML client templage generating the e-mail in your own extension:
- https://github.com/aimeos/ai-client-htm ... andard.php
- https://github.com/aimeos/ai-client-htm ... il/voucher

Configure the new names in the TSConfig field of your scheduler task so they will be used there.

In 2021.04, at least the template is prepared for multiple vouchers:
https://github.com/aimeos/ai-client-htm ... 0daf6be6fe
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply