I want to be able to offer subscribers to our website (www.summerhousearomatherapy.co.uk) a unique single use 10% discount code that is emailed out to them once they sign up or after their first purchase.
Is this something that. an be done or am I way out of the box here… if it can be done how do I do it…
Any help information or whatever is greatly received…
Hi,
You can use the paid-plans to offer subscriptions.
Use the coupons API to create costume coupons when a plan is purchased, use paid plans API to create an event that runs every time a plan is purchased.
Your request is totally doable - but it requires a bit of coding.
For example:
Create a random six-digit number:
console.log(Math.trunc(Math.random() * 1000000));
// expected output: a random six digit number
Save that discount number with the client’s record in your client collection.
(Add a field “Discount10” in your client collection for this randomly generated 10% discount code.)
Send the client a triggered email with the discount code.
When the client tries to collect that discount, you can confirm the code provided by the client with the unique code saved in the collection.
Can you please further break down these steps since I don’t have a coding background? I know how to create triggered emails so I’m particularly interested in the preceding steps you mentioned. Thanks.