How to send mail to two different suppliers, depending on which product the customers chooses? I added a custom field for a category, but how should i construct the function and in wich file? For eg. if user choses product A, to send a mail to supplier A, and if he choses product B, to send a mail to supplier B.
It is necessary at the time of the order to connect to the hook confirmation in order to treat each product of the command separately.
Here is some module that could help you:
Https://addons.prestashop.com/dropshipping/24993-dropshipping-system.html
Regards