What it does
- A small box on the My Account page where a logged-in customer picks a month and a day (never the year) and can remove it again.
- On the birthday the customer gets an email with a single-use coupon code (percent off, only for logged-in customers, valid for the days you choose), reward points, or both. Set either number to 0 to leave it out.
- Account anniversary: from the second year on, on the day the account was made. Off until you give it a coupon or points. By default it only goes to newsletter subscribers.
- Each reward goes out once per year per customer. A missed day is made up for up to two days later.
- A date must have been saved for a number of days (default 30) before it counts, so nobody can save today as their birthday to get a reward at once.
- 29 February is celebrated on 28 February in years without a 29th.
- Rewards are sent by a cron address (key protected), or without cron: once an hour the first page visit sends what is due. There is also a button to send now.
- Email subject and text are yours, with {name}, {store}, {occasion}, {reward} and {link}. A limit of emails per run keeps pages fast.
- If the email cannot be sent the reward is taken back and tried again on the next run.
- Texts on the account page and in the email can be translated by copying the language file.
Works with
OpenCart 2.3, 3.0, 4.0 and 4.1 (one zip for each).
Good to know
Screenshots are still to be added.
- Birthdays and the sent log are kept if you uninstall and reinstall the module, so nobody is rewarded twice.
- The coupon code is random and single-use, but any logged-in customer who has the code can use it.
- Reward points are added to the customer account after the email is sent; they are used at checkout on products that can be paid with points.
- Tested on the four versions with the real admin installer, real customer logins, a mail sink that checks the email text, and a mail server that is down. The account box was used in a real browser on 3.0 and 4.1.