Promotional codes / promotional vouchers

Promotional codes / promotional vouchers

Promotional codes (promo codes) can be added to campaigns. This is a code that is sent to customers with discounts and offers.

Whilst an email campaign can simply have an ad-hoc voucher added in the body of the HTML, using the promotional code features of Profitdiagnostix will allow for more consistent codes that may allow better tracking of how many of these are redeemed.

All promotional code variables are in the settings >> variables >> promo section.

Example:

The variable promo_coupon_conversion could have the following:

<div style="width: 500px; padding: 20px; background-color: #e3f0ff; border-radius: 15px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); text-align: center; font-family: Arial, sans-serif;"> <h1 style="margin: 0 0 10px 0; font-size: 24px; color: #333;">Special Voucher for [patientname]</h1> <p style="margin: 0; font-size: 16px; color: #666;">Use this voucher to get a discount on your next consultation, repeat consultation or vaccination </p> <p style="margin: 0; font-size: 16px; color: #666;">Coupon code: [campaign_code]-CONV</p> <p style="margin: 0; font-size: 16px; color: #666;">Valid until: [expiry_date]</p> <p style="margin: 0; font-size: 16px; color: #666;">Issued on: [issue_date]</p> </div>

Placeholders for issue date and expiry date are visible. Also a placeholder for [campaign_code] which will attach a code specific to the dashboard that generated it. This gives you some auditability as to where the code came from and how the customer got it. Using placeholders instead of typing vouchers directly into emails also allows you to control promotions and discounts in one central place. It also allows you to delete the voucher so that it will vanish if it is present in subsequent emails.

If you type ‘[promo_coupon_conversion]’ into any email communication, you will get the following output based on the HTML above.

image-20250711-055906.png

In the above example the ‘ACTAF’ part of the code is generated because the coupon came from the ‘active animals with filters’ dashboard.
The 0625 is a month-day code for the campaign end date.
The ‘CONV’ is part of the voucher and means that the discount is associated with conversion items (vaccinations, consults and repeat consults)
The valid unitl date is calculated using the formula today + variable('promo_default_expiry_days'). This means that the expiry date will have a number of days added to it from the date of sending/emailing.

If you wish to make the default expiry longer or shorter, just alter the variable promo_default_expiry_days