=== WPC Smart Points & Rewards for WooCommerce ===
Contributors: wpclever
Tags: points, rewards, loyalty program, points and rewards, vip tiers
Tested up to: 7.0
Version: 1.2.0
Stable tag: 1.2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

WPC Smart Points & Rewards allows shop owners to reward their customers with points for every purchase, review, and milestone achieved.

== Description ==

**WPC Smart Points & Rewards** is a powerful loyalty management solution for WooCommerce. It helps shop owners increase customer retention and lifetime value by rewarding shoppers with points for various activities. Customers can then redeem these points for discounts during checkout, creating a gamified shopping experience that encourages repeat purchases.

### 🌟 Key Features

*   **Flexible Earning Rules**: Reward customers with points for making purchases, completing orders, or writing product reviews.
*   **Customizable Redemption**: Set your own "Redeem Ratio" (e.g., 100 points = $1) and control how customers use their points at checkout.
*   **VIP Tiers & Level System** (Premium): Create multiple VIP levels (Bronze, Silver, Gold, Platinum) based on total points earned. Each tier can have its own badge and exclusive rewards.
*   **Personalized Floating Status**: A sleek, glassmorphic floating widget that greets customers by name and shows their current level, points balance, and monetary value.
*   **Milestone & Expiration Emails**: Automatically notify customers when they reach a new VIP level or when their points are about to expire.
*   **Payment Method Rewards**: Offer bonus points for specific payment methods (e.g., Bank Transfer, Cash on Delivery) to influence customer behavior.
*   **Advanced Shortcodes**: Easily display user ranking badges, point balances, or potential earned points on any page using versatile shortcodes.
*   **Comprehensive Statistics**: Track point acquisition and redemption trends with beautiful charts and data filtering in the admin dashboard.
*   **Administrative Control**: Shop managers can manually adjust customer points (add/remove) individually or in bulk via a responsive AJAX interface.

### 🧩 Available Shortcodes

*   `[wpcpr_user_points]`: Displays the current points balance of the logged-in user.
*   `[wpcpr_product_points]`: Shows how many points a customer will earn by purchasing a specific product.
*   `[wpcpr_user_rank]`: Displays the current VIP tier badge for the user.
*   `[wpcpr_potential_points]`: Shows the total potential points a user can earn from their current cart.

= Not what you needed? =

Please try other plugins from us:

- [WPC Product Bundles](https://wordpress.org/plugins/woo-product-bundle/ "WPC Product Bundles")
- [WPC Composite Products](https://wordpress.org/plugins/wpc-composite-products/ "WPC Composite Products")
- [WPC Frequently Bought Together](https://wordpress.org/plugins/woo-bought-together/ "WPC Frequently Bought Together")
- [WPC Force Sells](https://wordpress.org/plugins/wpc-force-sells/ "WPC Force Sells")
- [WPC Linked Variation](https://wordpress.org/plugins/wpc-linked-variation/ "WPC Linked Variation")

== Third-Party Libraries ==

This plugin uses the following third-party libraries:

= Chart.js =

* **Library**: Chart.js
* **Version**: 4.5.1
* **Description**: A flexible JavaScript charting library used to render the quote statistics charts in the admin dashboard.
* **Homepage**: https://www.chartjs.org/
* **Source**: https://github.com/chartjs/Chart.js
* **License**: MIT License
* **License URI**: https://github.com/chartjs/Chart.js/blob/master/LICENSE.md

= iziToast =

* **Library**: iziToast
* **Version**: 1.4.0
* **Description**: A lightweight, elegant and responsive toast notification plugin used to display floating point notifications for user interactions.
* **Homepage**: https://marcelodolza.github.io/iziToast/
* **Source**: https://github.com/marcelodolza/iziToast/tree/master
* **License**: Apache License 2.0
* **License URI**: https://github.com/marcelodolza/iziToast/blob/master/LICENSE

== Installation ==

1.  Upload the plugin files to the `/wp-content/plugins/wpc-smart-points-rewards` directory, or install the plugin through the WordPress plugins screen directly.
2.  Activate the plugin through the 'Plugins' screen in WordPress.
3.  Navigate to **Smart Points & Rewards** to configure your rewards system.

== Changelog ==

= 1.2.0 =
* Updated: Optimized the code
* Updated: Compatible with WP 7.0 & Woo 10.9

= 1.0.2 =
* Fixed: Incomplete Readme & Headers

= 1.0.1 =
* Fixed: Use wp_enqueue commands
* Fixed: Nonce and permission check for get_user_timeline()
* Fixed: Proper escaping of outputs
* Fixed: Sanitization for register_setting()
* Fixed: Callback calls to a function/method whose return values are output must be properly escaped

= 1.0.0 =
* Initial release.
