=== hypemediasystem Sale Rules for WooCommerce ===
Contributors: hypemediasystem
Tags: woocommerce, discount, sale, pricing, csv import
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
WC requires at least: 8.0
WC tested up to: 11.0

WooCommerce sale pricing by category, brand, and schedule, with Excel/CSV import and HPOS support.

== Description ==

hypemediasystem Sale Rules for WooCommerce lets you create WooCommerce discount rules and apply them in batches.

* Percentage or fixed discounts
* Target product categories and brands
* Exclude products or tags
* Start and end dates
* Optional sale category sync
* Excel/CSV import for regular prices (SKU + regular_price) and sale prices (SKU + sale_price or pret_redus)
* WP-CLI commands for apply, cleanup, and repair
* High-Performance Order Storage (HPOS) compatible

WooCommerce must be installed and active.

== Installation ==

1. Upload the `hypemediasystem-sale-rules` folder to `/wp-content/plugins/`.
2. Activate the plugin through the Plugins screen.
3. Open WooCommerce → Product Discounts.
4. Create a rule and click Apply Discounts Now.

== Frequently Asked Questions ==

= Does this replace WooCommerce coupons? =

No. It writes sale prices on matching products, using the WooCommerce product API.

= Will it overwrite prices I set by hand? =

The plugin marks products it manages with its own metadata and skips unrelated manual sales where possible. Always test on staging first.

= What Excel columns are required? =

For regular prices: `SKU` and `regular_price` (or `pret`). For sale prices: `SKU` and `sale_price` (or `pret_redus`).

== Screenshots ==

1. Discount rules list and bulk actions
2. New discount form (categories, brands, schedule)
3. Excel/CSV import

== Changelog ==

= 1.0.5 =
* Load the plugin text domain so translate.wordpress.org language packs apply.

= 1.0.4 =
* Ignore request-supplied apply-progress keys and only read or write the current user's plugin transient.

= 1.0.3 =
* Require a nonce and manage_woocommerce capability before applying a single discount over AJAX.

= 1.0.2 =
* Directory submission: distinctive display name and slug, enqueued admin assets, and WooCommerce plugin URL lookup.

= 1.0.1 =
* Set Author URI to https://www.hype.ro and omit Plugin URI so the two headers are not identical.

= 1.0.0 =
* Initial public release.

== Upgrade Notice ==

= 1.0.5 =
Loads translations from WordPress.org language packs.

= 1.0.4 =
Apply-progress polling no longer accepts a client-supplied transient key.

= 1.0.3 =
AJAX discount apply now requires a WooCommerce manager capability in addition to a nonce.

= 1.0.2 =
Renamed for the WordPress.org directory. Re-activate after updating if the plugin folder name changed.

= 1.0.1 =
Plugin URI and Author URI are now different, as required by WordPress.org.

= 1.0.0 =
First release.
