[Solved] Order: send an email to the supplier

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!
ivanp
Posts: 37
Joined: 05 Mar 2021, 17:52

[Solved] Order: send an email to the supplier

Post by ivanp » 29 Oct 2021, 14:49

I got following question:

In a shop, multiple suppliers offer the same sort of product.
As the products concerned are "fresh" (low stock) the supplier/producer of the ordered product would like to receive the order as well.
Is this possible?

(I could not find a solution in the documentation).
Last edited by ivanp on 03 Nov 2021, 14:58, edited 1 time in total.

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

Re: Order: send an email to the supplier

Post by aimeos » 31 Oct 2021, 09:23

Yes, implement a service decorator which you can add to the shipping options and sends and e-mail to the supplier when the orders is processed by the order/service/delivery job controller:
https://aimeos.org/docs/latest/provider ... ecorators/

There's already an Email delivery provider where you can see the necessary code:
https://github.com/aimeos/aimeos-core/b ... /Email.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply