Gift Voucher
solved
Hi,
I try to create this scenario:
There are 3 different "Gift Voucher" virtual products in the shop customers can buy.
- When such a product was purchased a new voucher should be created with the value of the product.
- An email should be sent to the customer with the voucher code and details.
Is it possible? For the first point, I could use the "Create Voucher" action and the condition product ID equals to product id. For the value I could use the price of the product.
But I am not sure, what happens, if the customers buys 2 or 3 of the same product.
For the second: Action is "Send email" with voucher template. Trigger ist "after Conseqs rule (the above) with no conditions. But how to get the newly created voucher amount and code into the email. Any idea?
Unfortunately this is not currently possible. After Conseqs Action has access to the same input data as the original rule, but it has no idea what the original rule action produced (if anything).
I will try to come up with some way to produce additional metadata to describe action output, so these could be used in subsequent rules.