HA Loyalty Biz is the loyalty program of the HAFiskal invoicing and fiscalization service (
https://hafiskal.rs/ha-loyalty/). One program works in the physical shop (HAFiskal POS: scan the loyalty QR or enter the loyalty ID) and in the online shop (this plugin), so a customer collects and spends the same points everywhere.
In the online shop:
- Cart and checkout show a "Loyalty program" box: the customer enters a loyalty ID, phone number or e-mail and sees their points and their value.
- The customer can spend points as a discount. The limits (minimum points, maximum percentage of the order, value of one point) come from the program rules set in HAFiskal. The discount is applied as a cart coupon, so it is spread over the order items and the totals (and the fiscal receipt, if you use "HAFiskal for WooCommerce") stay correct.
- Spent points are reserved when the order is placed and finally deducted when the order is paid; if the order is cancelled or never paid, they are returned to the customer.
- Points are added when the order is completed (or processing - configurable), and removed again if the order is cancelled or refunded.
- New customers can join with a checkbox at checkout ("I want to join"), automatically, or not at all - your choice.
- "My account > Loyalty points" shows the customer's loyalty ID and balance, lets them join or link an existing loyalty ID (e.g. from the shop's POS).
- The order screen shows a "Loyalty" box (member, points spent, points earned) and a "Give points now" button.
- Failed requests are retried every hour (WP-Cron).
Requirements: an HAFiskal account with the "Loyalty Biz" module enabled and a loyalty API key (in HAFiskal: Integrations > New integration > type "HA Loyalty"). The loyalty key works only for the loyalty program; fiscalization keys are not accepted.
The plugin works with the classic cart and checkout (shortcodes). The WooCommerce cart/checkout blocks are not supported yet.