=== Quick Price Editor for WooCommerce ===
Contributors: HsHHiri
Tags: woocommerce, price editor, product management, sale price, variations
Requires at least: 5.0
Tested up to: 6.7
Stable tag: 2.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A powerful plugin to manage and update prices of WooCommerce products and variations in bulk with smart grouping as a part of WooMaster Plugins.

== Description ==

Quick Price Editor for WooCommerce is an essential tool for store owners who need to efficiently manage prices for both simple products and variable product variations. Key features include:

- **Smart Variation Grouping**: Automatically groups variable product variations with identical prices to reduce clutter.
- ** ⚡ Advanced Filtering**: Filter products by category, tag, or stock status.
- **Bulk Editing**: Update regular/sale prices for hundreds of products/variations in one click.
- **Individual Price Adjustment**: Edit single product or variation prices with percentage-based adjustments supporting negative values, with rounding applied only on percentage changes.
- **Dynamic Thumbnails**: Each product row includes a thumbnail for clear visual identification.
- ** 🛠 Cache Management**: Automatically clears WooCommerce cache after updates.
- **HPOS Ready**: Fully compatible with WooCommerce's High-Performance Order Storage.
- ** 📱 Mobile-Friendly Interface**: Fully responsive design for easy use on mobile devices.
- **WooMaster Integration**: Seamlessly integrates with the WooMaster menu for better organization.
- **Uniform Table Design**: All tables have consistent dimensions and centered alignment for better visual presentation.
- ** 🎨 Improved UI/UX**:
  - Save Prices button styled in green.
  - Real-time row highlight on manual changes in both Regular and Sale Price fields.
  - Confirmation messages appear next to Save Prices button.
  - Product image thumbnails show centered edit/view links.
- **Variant Visibility Filter**: Variations marked out-of-stock are hidden from the price list for cleaner management.

== Installation ==

1. **Download the Plugin**:
   Download the plugin ZIP file from your source.

2. **Upload the Plugin**:
   Go to WordPress Dashboard > Plugins > Add New > Upload Plugin.
   Upload the ZIP file and click Install Now, then Activate.

3. **Verify Installation**:
   Ensure WooCommerce is active. The plugin will appear under WooMaster > Quick Price Editor.

== How to Use ==

1. **Access the Price Editor**:
   Navigate to WooMaster > Quick Price Editor in your WordPress dashboard.

2. **Filter Products**:
   Use the filters at the top to:
   - Select a Product Category
   - Filter by Product Tag
   - Choose Stock Status (In Stock/Out of Stock)
   - Toggle "Group similar variations" option
   Click Filter Products to apply.

3. **Edit Prices**:
   - **Simple Products**: Edit prices directly in the table.
   - **Variable Products**:
     - Variations with identical prices are grouped automatically.
     - Edit the group price to update all matching variations.
     - Variations that are out-of-stock will be hidden from the list.
     - Click View to see the product page or Edit to open the product editor.
   - **Uniform Tables**: All tables have equal width and centered alignment.
   - **Manual Price Changes**: Supports positive and negative percentage adjustments with rounding up applied only on percentage adjustments. Manual entries are not rounded automatically.
   - **Visual Feedback**: Changing either Regular or Sale price field highlights the entire row.

4. **Save Changes**:
   Click the green Save Prices button at the top or bottom to apply all changes.
   Confirmation messages show immediately next to the button.

== Frequently Asked Questions ==

1. **How does variation grouping work?**
   The plugin automatically groups variations with identical regular and sale prices. Editing a group updates all matching variations.

2. **Why are all tables the same size now?**
   Version 2.0 introduces uniform table dimensions and centered alignment for better visual consistency.

3. **Can I edit prices for variations individually?**
   Yes! Disable grouping by unchecking the "Group similar variations" option. You can also adjust individual variations directly.

4. **Does the plugin support negative percentage adjustments?**
   Yes, both bulk and individual percentage adjustments support negative values, allowing price decreases with proper rounding.

5. **Are manual price entries rounded?**
   No. Rounding is only applied to percentage-based adjustments to keep manual input precise.

6. **Are out-of-stock variations shown?**
   No. Variations marked as out-of-stock are hidden from the price editor to avoid clutter.

7. **Is this plugin translation-ready?**
   Yes! Includes .pot file in the /languages folder. Supports RTL languages.

8. **How do I access the plugin in the admin menu?**
   The plugin is accessible under WooMaster > Quick Price Editor. If WooMaster is not available, it will be added automatically.

== Changelog ==

= 2.5 =
- New: Uniform table dimensions for all products
- Improved: Centered table alignment on page
- Enhanced: Equal column width distribution (25% each)
- Updated: Consistent styling across all tables
- Fixed: Responsive design improvements for tables
- Added: Individual price adjustment with negative percentage support
- Added: Manual input rounding disabled, only percentage adjustments are rounded up
- Added: Visual highlight on price fields (both Regular and Sale) on manual change
- Added: Confirmation message shown near Save Prices button
- Added: Centered edit/view links below product thumbnails
- Added: Hide out-of-stock variations from price editing list

= 2.0 =
- New: Uniform table dimensions for all products
- Improved: Centered table alignment on page
- Enhanced: Equal column width distribution (25% each)
- Updated: Consistent styling across all tables
- Fixed: Responsive design improvements for tables

= 1.8 =
- Improved: Separated product tables with alternating borders and backgrounds.
- Added: Thumbnails only once per product, not repeated per variation.
- Added: Styled buttons for product links.
- Improved: Centered all table cell content.

= 1.2.6 =
- Added: Integration with WooMaster menu for better organization.
- Improved: Fully responsive design for mobile devices.

= 1.2.5 =
- Improved: Responsive design for mobile devices.
- Fixed: Minor UI improvements for better usability.
- Added: Center-aligned column headers for better readability.

= 1.2.4 =
- Fixed: View links now point to main product pages instead of variations.
- Improved: Added automatic cache clearance after price updates.
- Enhanced: Better error handling for price saving.

== Upgrade Notice ==

= 2.5 =
Major update featuring uniform table dimensions, centered alignment, and consistent styling for all product tables. Recommended for all users for better visual consistency.

= 2.0 =
- New: Uniform table dimensions for all products
- Improved: Centered table alignment on page
- Enhanced: Equal column width distribution (25% each)
- Updated: Consistent styling across all tables
- Fixed: Responsive design improvements for tables

= 1.8 =
New features include image thumbnails per product, grouped variations, styled links, and UI enhancements. Highly recommended for all users.

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

== License ==
Released under the GNU GPLv2.0+ license.
