=== Nexoy Pricing Rules For WooCommerce ===
Contributors: devrayhan
Tags: woocommerce, pricing, discount, dynamic pricing, bulk discount
Requires at least: 5.8
Tested up to: 7.1
Stable tag: 1.1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight WooCommerce dynamic pricing tool. Set storewide discounts, category offers, and exclusions with ease.

== Description ==

Nexoy Pricing Rules For WooCommerce is a lightweight and performance-focused pricing plugin for your store. This tool focuses on efficiently managing dynamic discounts.

It allows store owners to create unlimited pricing rules with advanced inclusion and exclusion logic. Whether you want to run a store-wide Black Friday sale, offer a discount on a specific category, or exclude certain premium products from a general sale, this plugin handles it effortlessly.

**Key Features:**

* **Dynamic Discounts:** Set percentage-based discounts globally or for specific items.
* **Smart Inclusion:** Apply rules to all products, specific categories, or specific product IDs.
* **Advanced Exclusion:** Prevent specific products or categories from receiving discounts, even during a store-wide sale.
* **Variable Product Support:** Automatically fixes and displays the correct "strikethrough" price range (e.g., From <del>$100</del> to $80) for variable products.
* **High Performance:** Built with static caching to ensure zero impact on your site's loading speed.
* **Native UI:** Integrates seamlessly with your theme's existing sale badges and styles.

**How it works:**
1. Go to **Dashboard > Pricing Rules**.
2. Click **Add Rule**.
3. Set your discount percentage.
4. Choose which products or categories to include or exclude.
5. Publish! Your prices are instantly updated on the frontend.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/nexoy-pricing-rules` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to the "Pricing Rules" menu in your dashboard to create your first discount rule.

== Frequently Asked Questions ==

= Does this work with variable products? =
Yes! It fully supports variable products and correctly calculates the price range display on shop pages.

= Can I exclude a specific product from a category sale? =
Absolutely. If you set a discount for the "T-Shirts" category, you can still exclude a specific T-Shirt ID in the exclusion settings. The plugin's logic prioritizes exclusions.

= Will it slow down my website? =
No. The plugin uses smart caching to minimize database queries. It is lightweight and optimized for performance.

== Screenshots ==

1. Rule Configuration - Easily set active status, discount amount, and inclusion rules.
2. Exclusion Logic - Exclude specific categories or products from the discount rule.
3. Frontend View - Shows discounted prices with correct strikethrough formatting on the shop page.

== Changelog ==

= 1.1.0 =
* New: Search and select products by name instead of typing product IDs.
* New: Rule priority. When several rules match, the lowest priority number wins.
* New: Option to skip products that already have their own sale price.
* New: Status, Discount and Priority columns in the rules list.
* Improved: Declared compatibility with WooCommerce HPOS and Cart/Checkout blocks.
* Improved: Variable product price cache refreshes automatically when rules change.
* Improved: All admin texts are now translatable.
* Tested with WordPress 7.1.

= 1.0.0 =
* Initial release.
* Added Custom Post Type for Pricing Rules.
* Implemented smart inclusion/exclusion logic.
* Added support for variable product price ranges.

== Upgrade Notice ==

= 1.1.0 =
Adds product search, rule priority and a "skip items on sale" option. Existing rules keep working without changes.

= 1.0.0 =
This is the first version of Nexoy Pricing Rules For WooCommerce.