Hello,
I would like to submit a feature request regarding product-specific post-purchase emails in J2Commerce 6.
Our use case is the following.
We sell different products and services through J2Commerce, and after an order reaches a specific status — for example, confirmed or paid — we would like to send the customer a different transactional email depending on the product purchased.
For example:
- Product A → Brevo transactional template ID 17
- Product B → Brevo transactional template ID 24
- Product C → no additional email
Ideally, each J2Commerce product could have settings such as:
- enable/disable the specific post-purchase email;
- transactional template ID;
- order status that triggers the email;
- optionally, parameters to pass to the template.
In our case we use Brevo, so the ideal workflow would be:
J2Commerce order → payment/order status confirmed → identify purchased products → send the corresponding Brevo transactional template(s).
This would be particularly useful for products such as courses, treatments, services, events or digital products, where each purchase may require different instructions or follow-up information.
An important requirement would also be to prevent duplicate emails if the order status is saved or changed more than once.
Before developing a custom J2Commerce plugin for this, I would like to know:
- Does J2Commerce 6 already provide a native way to achieve this?
- If not, would you consider this functionality suitable for J2Commerce itself or for an official extension/plugin?
- If a custom plugin is currently the recommended solution, which J2Commerce 6 event/hook would you recommend for reliably detecting the relevant order status change after payment?
- Is there a recommended J2Commerce API/service for retrieving the order items and their product IDs from that event?
Our intention is to keep the integration completely separate from the J2Commerce core and use the new J2Commerce 6 plugin/event architecture wherever possible.
Thank you!