=== PrizeOrbit Rewards Wheel for WooCommerce ===
Contributors: wpcustomca
Tags: woocommerce, spin wheel, discount, coupon, gamification
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A secure WooCommerce spin-to-win discount wheel with automatic coupons.

== Description ==

PrizeOrbit Rewards Wheel adds a polished floating wheel to your WooCommerce storefront.

This is an independent plugin for stores using WooCommerce and is not an official WooCommerce extension.

Features:

* Server-side weighted prize selection.
* Percentage, fixed-cart, free-shipping, and no-prize segments.
* Unique one-use WooCommerce coupons.
* Automatic coupon application when a cart already contains products.
* Pending coupon application after the next add-to-cart action.
* Admin-defined no-cart reset timer.
* Coupon validity and next-spin cooldown controls.
* Minimum spend and individual-use coupon rules.
* Editable colors, text, position, and display delay.
* WooCommerce dependency protection.
* Mobile-friendly and accessible popup.

== Installation ==

1. Upload the `prizeorbit-rewards-wheel-for-woocommerce` folder to `/wp-content/plugins/`, or upload the ZIP from Plugins > Add New.
2. Activate WooCommerce first.
3. Activate PrizeOrbit Rewards Wheel for WooCommerce.
4. Open WooCommerce > Rewards Wheel.
5. Configure the segments and save.

== Frequently Asked Questions ==

= What happens when the cart is empty? =

The visitor receives a pending unique coupon. If a product is added before the configured reset timer ends, the coupon is automatically applied. Otherwise, the pending coupon is cancelled and the visitor may spin again.

= Can I control prize probability? =

Yes. Each segment has a weight. Higher weight means a higher chance of selection.

= Does the result run only in JavaScript? =

No. The final result is selected securely on the server and the coupon is created by WooCommerce.

== Shortcode ==

Use `[prizeorbit_rewards_wheel]` in Elementor/shortcode blocks as a fallback. Automatic display remains enabled by default.

== Changelog ==

= 1.0.2 =
* Renamed the plugin and slug to a distinctive PrizeOrbit identity.
* Replaced all public declarations and stored-data keys with the unique `wpcarw_` prefix.
* Removed the unnecessary manual translation loader for WordPress.org language packs.
* Added nonce verification to the state endpoint.

= 1.0.1 =
* Fixed the storefront trigger remaining hidden when state AJAX is blocked.
* Added wp_body_open and shortcode fallbacks for custom themes/builders.
* Kept the trigger visible during cooldown and added a countdown message.

= 1.0.0 =
* Initial release.
