=== 800Website Loyalty Rewards for WooCommerce ===
Contributors: maborak
Tags: loyalty, rewards, points, customer rewards, loyalty program
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A complete loyalty rewards system with points earning, redemption, staff scanner, and customer app for WooCommerce.

== Description ==

800Website Loyalty Rewards for WooCommerce is a comprehensive loyalty plugin that helps you reward your customers and increase retention. Works seamlessly with WooCommerce.

= Features =

**For Store Owners:**
* Automatic points earning on purchases
* Flexible points calculation (points per currency or currency per point)
* Tiered membership levels (Bronze, Silver, Gold, Platinum)
* Product-based rewards catalog
* Staff management with PIN authentication
* Pending points approval workflow
* Retroactive points generator for existing orders
* Comprehensive admin dashboard with analytics
* CSV export for all data tables

**For Customers:**
* Beautiful customer loyalty app
* QR code for quick identification
* Points balance and transaction history
* Browse and redeem rewards
* Use points as wallet at checkout

**For Staff:**
* Mobile-friendly scanner interface
* QR code and manual customer lookup
* Add points via bill amount (with admin approval)
* Process redemptions
* Create orders with points discount

= Points System =

Choose between two calculation modes:
* **Points per Currency**: Earn X points for every currency unit spent
* **Currency per Point**: Spend X currency units to earn 1 point

Points can be redeemed for:
* Products from your rewards catalog
* Discounts at checkout (wallet mode)

= Staff Workflow =

1. Staff logs in with PIN
2. Scans customer QR or searches by phone/name
3. Enters invoice number and bill amount
4. Request goes to admin for approval
5. Admin approves → points credited to customer

= Requirements =

* WordPress 5.8 or higher
* WooCommerce 5.0 or higher
* PHP 7.4 or higher

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/800website-loyalty-rewards/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Loyalty Rewards → Settings to configure the plugin
4. Create a rewards category and add reward products
5. Add staff members who will process transactions
6. Share the customer app URL with your customers

== Frequently Asked Questions ==

= How do customers earn points? =

Customers automatically earn points when their WooCommerce orders are marked as completed. The points are calculated based on your settings.

= Can customers use points at checkout? =

Yes! Enable "Checkout Redemption" in settings to allow customers to use their points balance as a wallet discount during checkout.

= How do staff add points for in-store purchases? =

Staff can log into the scanner app, find the customer by QR code or search, enter the invoice number and bill amount. The request goes to admin for approval before points are credited.

= Can I import points for existing customers? =

Yes! Use the Points Generator feature to calculate and award points for historical orders based on your current settings.

= How do tiers work? =

Customers are automatically assigned tiers based on their points balance:
* Bronze: Starting tier
* Silver: Configurable threshold
* Gold: Configurable threshold
* Platinum: Configurable threshold

= What shortcodes are available? =

* `[lrwc_loyalty_app]` – Displays the customer loyalty dashboard with QR code, rewards, and history.
* `[lrwc_loyalty_staff]` – Displays the staff scanner interface for adding points and processing redemptions.

== Screenshots ==

1. Admin Dashboard - Overview of your loyalty program
2. Customer App - Beautiful interface for customers
3. Staff Scanner - Mobile-friendly staff interface
4. Points Settings - Flexible configuration options
5. Rewards Catalog - Product-based rewards

== Changelog ==

= 1.0.0 =
* Initial release
* Points earning and redemption
* Customer app with QR code
* Staff scanner interface
* Admin approval workflow
* Checkout points redemption
* CSV export for all tables
* Tiered membership system
* Retroactive points generator

== Upgrade Notice ==

= 1.0.0 =
Initial release of 800Website Loyalty Rewards for WooCommerce.
