=== Quick Price Editor for WooCommerce ===
Contributors: HsHHiri
Tags: woocommerce, price editor, bulk price update, product variations, product management
Requires at least: 6.0
Tested up to: 7.0.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Quickly edit WooCommerce product and variation prices from a focused, card-based editor inside the WooMaster menu.

== Description ==

Quick Price Editor for WooCommerce helps store managers update regular and sale prices without opening each product one by one.

The plugin appears under **WooMaster > Quick Price Editor** and provides a focused price-management screen for simple products and variable-product variations.

### Highlights

* Edit regular and sale prices with AJAX saving.
* Update selected products by a percentage, with a preview before applying changes.
* Choose whether a percentage change applies to regular prices, sale prices, or both.
* Configure percentage-based rounding: round up, normal rounding, or round down; choose units of 1, 10, 100, or 1000.
* Keep all variations of one product at the same price with one optional checkbox per product card.
* Work with separate, softly coloured product cards to distinguish products more easily.
* Filter by product name, category, tag, and stock status.
* Use pagination (50 parent products per page) for a smoother experience on large stores.
* Save selected rows from a sticky action button while scrolling.
* Receive temporary green **Successful** feedback after a successful save.
* Open a product's storefront page from the top of its card; row names open the WooCommerce product editor.
* Validate prices before saving: negative values, a sale price without a regular price, and sale prices higher than regular prices are rejected.
* Clear WooCommerce product transients after an update.
* Compatible with WooCommerce High-Performance Order Storage (HPOS).

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install the plugin ZIP from **Plugins > Add New > Upload Plugin**.
2. Activate the plugin.
3. Make sure WooCommerce and the WooMaster package are active.
4. Open **WooMaster > Quick Price Editor**.

== How to use ==

= Find products =

Use the filters at the top of the page to search by product name or limit the list by category, tag, or stock status.

= Edit one price =

1. Enter a regular price and/or sale price in the relevant row.
2. Click that row's **Save** button.
3. After a successful save, the clicked button briefly turns green and displays **Successful**.

= Give all variations the same price =

1. Find the card for a variable product.
2. Enable **Use same prices for all variations**.
3. Change a regular or sale price in any variation row.
4. The same field is copied to the other variations in that card.
5. Click **Save** on the row, or use **Save selected rows**, to save all variations in that card.

= Apply a percentage adjustment =

1. Select the required rows.
2. Enter a percentage and select Increase or Decrease.
3. Choose whether to affect regular prices, sale prices, or both.
4. Click **Preview** to review the proposed changes.
5. Click **Apply** and confirm the action.

= Save several rows =

Select the relevant rows and click **Save selected rows**. The sticky button stays available near the top while you scroll through the product cards.

= Configure rounding =

Open **Rounding settings** below the bulk-adjustment controls. These settings apply only to percentage adjustments; manually entered prices are not rounded.

== Frequently Asked Questions ==

= Does the plugin support variable products? =

Yes. Each variation is displayed within its parent product card and can be changed individually or synchronised with the other variations in that product.

= Does changing a price update the storefront immediately? =

Yes. The plugin saves through WooCommerce product objects and clears the affected product cache after saving.

= Can I enter a sale price higher than the regular price? =

No. The plugin rejects a sale price that is higher than the regular price. It also rejects negative prices and a sale price without a regular price.

= Are manual prices rounded? =

No. Rounding applies only to percentage-based adjustments.

= Where is the plugin menu? =

The editor is available at **WooMaster > Quick Price Editor**. WooMaster must register the `woomas-dashboard` parent menu.

== Changelog ==

= 3.0 =
* New: Separate CSS and JavaScript assets loaded only on the plugin screen.
* New: Card-based product layout with six soft colour variations.
* New: Optional synchronisation of regular and sale prices across a variable product's variations.
* New: Sticky Save selected rows button for long product lists.
* New: Temporary green Successful confirmation on save buttons.
* New: Product-card link to the storefront and row links to the WooCommerce editor.
* New: Rounding settings are available inside the editor, below bulk controls.
* Improved: Pagination limits the screen to 50 parent products per page.
* Improved: Added product-name search and clearer category, tag, and stock filters.
* Improved: AJAX validation for invalid prices and product-edit permissions.
* Improved: WooMaster submenu integration and HPOS compatibility declaration.

= 2.6 =
* Previous release.

== Upgrade Notice ==

= 3.0 =
This release changes the editor layout and separates its CSS and JavaScript assets. Replace the complete plugin folder when upgrading so that the `assets/` and `includes/` folders are present.

== Support ==

For support, contact c.hadi.shiri@gmail.com.

== License ==

Quick Price Editor for WooCommerce is released under the GNU General Public License v2.0 or later.
