=== Custom Customer Pricing for WooCommerce ===

Contributors: thaxam
Donate link: https://paypal.me/thaxam
Tags: prices, discount, minimum quantity, user, custom 
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.25
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Custom pricing and discount plugin for WooCommerce customers with Ultimate Member compatibility.


== Description ==

The **Custom Customer Pricing for WooCommerce** plugin provides a comprehensive solution for setting up personalized pricing for your customers. You can define custom prices or percentage-based discounts on a per-product basis for each user. This plugin is designed to be highly flexible and compatible with modern WooCommerce themes and plugins.

### Key Features

* **Custom Prices:** Set specific prices for products for individual customers
* **Percentage Discounts:** Apply percentage-based discounts to products
* **Ultimate Member Compatibility:** Seamlessly integrates with Ultimate Member roles
* **Global Discounts:** Apply a global percentage discount to all products for a user
* **AJAX-Powered Interface:** A fast and modern user interface for managing custom prices
* **Shortcode Support:** Use `[thaxamccp_frontend]` to display the pricing interface on any page
* **Translation Ready:** The plugin is fully translation-ready with the text domain `custom-customer-pricing-for-woocommerce`
* **Variable Product Support:** Full support for WooCommerce variable products and variations
* **Role-Based Access:** Control which user roles can access the pricing interface
* **Bulk Operations:** Apply discounts to multiple products at once


== Installation ==

1. Upload the `custom-customer-pricing-for-woocommerce` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Make sure WooCommerce is installed and activated.
4. Go to **WooCommerce > Customer Pricing** in your WordPress admin menu to start managing custom prices.

**Requirements:**
* WordPress 5.8 or higher
* WooCommerce 5.0 or higher
* PHP 7.4 or higher

== Frequently Asked Questions ==

= How do I set a custom price for a customer? =

Navigate to **WooCommerce > Customer Pricing** in your WordPress admin menu. Search for a customer, and you will see a list of products. You can set a custom price or discount for each product.

= Can I apply a global discount to a customer? =

Yes, you can set a global percentage discount for each customer in the main pricing interface. This discount will be applied to all products for that customer.

= Is this plugin compatible with Ultimate Member? =

Yes, the plugin is fully compatible with Ultimate Member roles and user management.

= Does this plugin support variable products? =

Yes, it fully supports WooCommerce variable products and their variations. You can set custom prices for both parent products and individual variations.

= Where can I find the settings for the plugin? =

You can configure the plugin settings under **WooCommerce > Customer Pricing > Settings** in your WordPress admin menu.

= How do I display pricing on the frontend? =

Use the shortcode `[thaxamccp_frontend]` on any page or post to display the customer pricing interface for logged-in users.

= Can I restrict access to certain user roles? =

Yes, you can configure which user roles have access to the pricing interface in the plugin settings.

= Does this work with WooCommerce memberships or subscriptions? =

The plugin works with standard WooCommerce products. For memberships or subscriptions, additional compatibility testing may be required.


== Screenshots ==

1. The main pricing interface for setting custom prices.
2. The product table with custom prices.
3. The frontend pricing interface.


== Changelog ==

= 1.0.25 =
* Tweak: Updated version number and readme files.
* Fixed: Issue where discount was calculate twice.

= 1.0.24 =
* Tweak: Updated version number and readme files.

= 1.0.23 =
* Tweak: Updated version number and readme files.
* Updated Minimum requirement warning text and formatting.
* Various small fixes

= 1.0.22 =
* Tweak: Updated version number and readme files.

= 1.0.21 =
* Fix: Resolved an issue where pricing data was not saving correctly from the main plugin page.
* Tweak: Updated version number and readme files.


= 1.0.20 =
* Internal bug fixes and stability improvements.

= 1.0.19 =

* Enhanced frontend price injection for non-standard WooCommerce themes
* Added global discount management system for customer-wide discounts
* Improved cart integration with better variable product handling
* Added plugin conflict detection and admin notices
* Enhanced security with nonce validation for all AJAX requests
* Improved database performance with optimized caching
* Fixed various UI issues and improved responsive design

= 1.0.18 =
* Changed plugin slug from `custom-customer-pricing` to `custom-customer-pricing-for-woocommerce` for clarity and to avoid conflicts.
* Updated all internal references, text domains, and file names to match the new slug.
* Refactored all AJAX calls into a separate class (`Custom_Customer_Pricing_AJAX`) and file for better organization.


= 1.0.17 =
* Fixed prefix to be consistent with the new thaxamccp throughout the plugin code.
* Fixed CSS rendering issues with three-column layout and filter row grid layout.
* Improved modern UI design with contained layout (max-width 1200px).
* Optimized font sizes for better readability (16px headers, 14px body text, 13px tables).
* Enhanced column width distribution for better balance (30% search, flexible info, 30% calculator).
* Updated plugin metadata and descriptions.


= 1.0.15 =
* Added confirmation popup with user info for "Copy Prices from Another Customer" feature.
* Refactored AJAX user info handler into separate helper class to fix parse errors.
* Improved plugin structure and code maintainability.
* Preserved all existing functionality.

= 1.0.14 =
* Bumped version number.
* Updated meta information and fixed plugin URIs.

= 1.0.13 =
* Bumped version number.
* Updated meta information and fixed plugin URIs.

= 1.0.12 =
* Minor fixes and improvements.

= 1.0.11 =
* Added customer select reload on change, improved stability.

== Upgrade Notice ==

= 1.0.16 =
Major UI improvements with fixed layout issues, modern design, and optimized typography for better user experience.

= 1.0.15 =
Enhanced user experience with improved copy prices feature and better code structure.

== License ==

GPL-2.0-or-later
