=== Diller Loyalty ===
Contributors: dillerapp,teixeira1985
Tags: loyalty program, customer club, coupons, members, campaigns
Requires at least: 4.7
Tested up to: 6.9
Version: 2.5.3
Stable tag: 2.5.3
Requires PHP: 7.3
WC requires at least: 3.8.0
WC tested up to: 10.4.0
License: MIT
License URI: https://choosealicense.com/licenses/mit/

Diller Loyalty platform integration plugin for seamless membership engagement. Manages points, coupons and benefits and integrates with WC orders.

== Description ==
Diller is a loyalty platform for businesses that is easy, affordable and profitable. With Diller Wordpress plugin you will get customers back to your store, where they can access coupons, stamp cards, membership points and benefits.
It integrates with Woocommerce, allowing for Customers to enroll directly from the checkout page, redeem coupons at checkout and get an overview of the points earned for the current order.

Read more about Diller [here](https://diller.io/)

Feature list

1. Membership status (My Account Dashboard)
2. Coupons, stamps and friend referral (My Account Dashboard)
3. Subscription form for joining the loyalty program
4. Refund support
5. Multisite compatible
6. Multi-language support (NO, SE, EN, DK, PT, and more to come)
7. GDPR compliance
8. SDK: Contains a developer guide and code samples to help you implementing Diller functionality on your own.

== Installation ==
1. Install the plugin using WordPress [built-in plugin installer](https://wordpress.org/support/article/managing-plugins/#automatic-plugin-installation) or upload the entire `diller-loyalty` folder to the `/wp-content/plugins/` directory
2. Click the Activate Plugin button
3. Click on **Diller Loyalty** from the navigation menu and connect your store and adjust you store settings.


== Upgrade Notice ==
1. Click on **Diller Loyalty** from the navigation menu and make sure you re-connect your store again.


== Screenshots ==
1. Public enrollment form (for logged in customers)
2. Checkout: enrollment form (for guests or non-enrolled customers)
3. My Account: Loyalty Program Status
4. My Account: Loyalty Program profile edit screen
5. My Account: Refer a friend
6. My Account: Available coupons
7. Cart: Loyalty Program Coupons
8. Admin: Customization and settings page


== Frequently Asked Questions ==

= How to get help if I run into any issue? =
For issues with your WooCommerce installation you should use [Wordpress support forum](https://wordpress.org/support/plugin/woocommerce/).
For other issues, related to the plugin, please contact our awesome support and customer service team [support@diller.no](mailto:support@diller.no).

=== How to obtain the credentials to connect my store ===
1. Take contact with our awesome support and customer service team [support@diller.no](mailto:support@diller.no) and they'll get you the store PIN code and API key to connect your store.


== Changelog ==
= 2.5.3 =
* Fixes an error when hiding plugin REST endpoints from public API discovery on certain WordPress configurations

= 2.5.2 =
* Fixes PHP 8.1+ warnings by ensuring the 'visible' property of departments is always present before access

= 2.5.1 =
* Fixed inline JavaScript rendering issue affecting some block themes, such as Breakdance Builder/Zero
* Tested and ensured compatibility with WordPress up to v6.9

= 2.5.0 =
* Implements full compatibility with WooCommerce High-Performance Order Storage (HPOS)

= 2.4.8 =
* Resolves a bug that caused forms to break when input fields shared names with the enrollment form

= 2.4.6 =
* Resolves issue with inline scripts rendering between block-based and standard themes.

= 2.4.5 =
* Resolve incorrect WP_User/Diller Member association on order completion via REST API, when called by an external automation process.
* Fixed Javascript errors when applying coupons on checkout forms with multiple promo code fields.
* Added VAT and stock unit type to all product lines in each transaction sent to Diller.
* Fixed "Division by Zero" error when calculating dashboard points progress bar width.
* Addressed deprecation warnings for `parent` in callables and dynamic properties.

= 2.4.2 =
* Fixes bug when reserving coupons or creating refunds for orders with products without categories.
* Removes migrations for plugin versions 1.6.1 to 2.x.
* Removes Diller REST endpoints from public discovery endpoint /wp-json/wp/v2.
* Improve "My Account" dashboard membership level overview.
* Fixes localized texts being overridden or missing
* Fix issues with applying and removing coupons on the checkout page when multiple promo code input fields are present.
* Small tweaks and improvements.

= 2.4.0 =
* Adds reCAPTCHA v3 and v2 support for enrollment form.
* Adds support for full and partial refund of orders.
* Adds coupon reservation until order is completed or cancelled.
* Adds new config to define which field to use for login when creating a new WP user account (email (default) or phone number).
* Adds new config to define the default department for web shop interaction (e.g. Webshop, Online, Nettbutikk, etc.).
* Adds new config that enables a better membership progress bar,  responsive and no overlapping labels.
* Replaces public address phone lookup service with Link Mobility to support more countries (NO, DK and SE).
* Fixes bug with enrollment flow when logged in as a WP user.
* Small tweaks and improvements.
* Updates language files.

= 2.3.1 =
* Adds feature to manually force sync for one (order action) or more orders (order list bulk actions).
* Adds better logging.
* Small tweaks and improvements.
* Updates language files.

= 2.3.0 =
* Orders are sent to Diller API now, only when order status is set to "Completed".
* Adds setting to allow the plugin to run in test mode.
* Adds support for WP-Cli integration (currently only allows).
* Adds support for Danish language.
* Adds Non-binary to gender field options.

= 2.2.4 =
* Updated privacy policy URL.
* Improves dynamic form field ids uniqueness.
* Fixes bug when sending transactions to Diller API.

= 2.2.3 =
* Bug fixing and small tweaks.
* Adds mbstring polyfill extensions for PHP 8.

= 2.2.2 =
* Fixes PHP warning and notices being thrown in some actions.
* Fixes bug when Follower was deleted in Diller Admin panel and wanted to join again later, inside My Account area.
* Removed sslverify = false from API calls.
* Updated languages texts for nb-NO.
* Updated migration script to better handle migration of old settings format.
* Add: New hooks "diller_admin_woocommerce_actions" and "diller_admin_woocommerce_filters" for customization plugin backend behavior.
* Updated SDK files and documentation for newly added hooks.

= 2.2.1 =
* Fixed bug with coupons at checkout.
* Removed description from coupons.

= 2.2.0 =
* Support for Vipps transactions (integration with plugin [Checkout with Vipps for WooCommerce](https://wordpress.org/plugins/woo-vipps/)).
* Added Call to action for joining LP to order details (for non-members).
* Improved coupon styling and info displayed.
* General improvements and bug fixing.
* Updated language file for nb_NO

= 2.1.2 =
* Added Remove button for coupon cards (checkout).
* Improvements and bug fixing

= 2.1.1 =
* Added new field in admin settings to allow "Join Loyalty Program" checkboxes to be displayed after billing form (default) or terms
* Fixes bug with marketing fields logic at checkout
* Fixes bug with displaying points to customers that joined for the first time via checkout

= 2.1.0 =
* New feature: Members can reset their account or fulfil an incomplete registration by SMS code verification
* Bug-fixes and enhancements
* Improved logging

= 2.0.13 =
* Bug-fixes and enhancements
* Consent fields are now displayed before terms rather than billing

= 2.0.12 =
* Bug-fixes and enhancements
* Removed momentjs dependency
* Added Swedish language support

= 2.0.11 =
* Improvements on escaping output and sanitizing input data
* Improved admin settings screen to allow customization of plugin behavior
* Improved support for old shortcode migration on plugin activation
* Syncs enrollment form page permalink changes to Diller API
* Changed licence to MIT

= 2.0.10 =
* Initial public release.
