=== WooCommerce Wholesale Pro ===
Contributors: barn2media
Tags: woocommerce, wholesale
Requires at least: 5.0
Tested up to: 5.8.2
Requires PHP: 7.2
Stable tag: 1.7
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

The easy way to add a wholesale area to any WooCommerce store.

== Description ==

The easy way to add a wholesale area to any WooCommerce store.

== Installation ==

1. Go to Plugins -> Add New -> Upload and select the plugin ZIP file (see link in Purchase Confirmation Email).
1. Activate the plugin
1. Enter your license key under WooCommerce -> Settings -> Wholesale -> General
1. Follow our setup guide here.

== Frequently Asked Questions ==

Please refer to [our support page](https://barn2.com/our-wordpress-plugins/woocommerce-wholesale-pro-documentation-support/).

== Changelog ==

= 1.7 =
Release date 26 November 2021

 * New: Added support for Barn2 setup wizard.
 * Fix: Added support for products with no wholesale price to WPML WooCommerce Multilingual.
 * Tested up to WooCommerce 5.9 and WordPress 5.8.2

<!--more-->

= 1.6.4 =
Release date 26 August 2021

 * Enhancement: Custom WooCommerce filter widgets which can be used across the Shop, Wholesale Store, and WooCommerce Product Table pages.
 * Tested up to WooCommerce 5.6

= 1.6.3 =
Release date 4 August 2021

 * Fix: Price display suffix would not appear next to certain wholesale prices.
 * Fix: Conflict with All in One SEO plugin causing WooCommerce notices to not display on the Login / Register shortcodes.
 * Tested up to WooCommerce 5.5.2.

= 1.6.2 =
Release date 1 July 2021

 * Fix: WooCommerce Product Addons would ignore sale price for non-wholesale customers.
 * Fix: Error when trying to register a wholesale user with an existing username.
 * Tweak: Better handling of wholesale roles with no global discounts.
 * Dev: Filter for price transients to assist with third party integrations concerning price handling.
 * Dev: Switched to Composer autoloader.
 * Tested up to WooCommerce 5.4.1 and WordPress 5.8.

= 1.6.1 =
Release date 27 May 2021

 * Tweak: Ensure alternate content only displays in the main single product area.

= 1.6 =
Release date 26 May 2021

 * New: Alternate content option for when prices are hidden from logged out users.
 * New: Option to hide the striked out regular price for wholesale users.
 * New: Compatibility with WooCommerce Product Add-ons, Aelia Currency Switcher and WPML WooCommerce Multilingual.
 * Fix: Plugin activation via WP CLI.
 * Added Spanish language translation.
 * Tested up to WooCommerce 5.3.

= 1.5.2 =
Release date 20 April 2021

 * Fix: Resolved a compatibility issue with Elementor which resulted in the Wholesale Store page not displaying products.
 * Tested up to WooCommerce 5.2.2

= 1.5.1 =
Release date 2 April 2021

 * Fix: SiteGround Optimizer conflict resolved.

= 1.5 =
Release date 1 April 2021

 * New: Added decimal discount support for the category and global settings.
 * Fix: Immediately clear variable price range cache when a user's role has changed.

= 1.4.6 =
Release date 8 March 2021

 * Fix: Wholesale variation price was not shown on single product when all regular variation prices were the same.
 * New: Added support for upcoming WooCommerce navigation.
 * Tested up to WooCommerce 5.1.

= 1.4.5 =
Release date 15 February 2021

 * Tweak: Remove product offers from structured data when prices are hidden to logged out users.
 * Tweak: Clear the wholesale pricing cache when a product is updated through WP All Import Pro.
 * Tested up to WooCommerce 5.0.

= 1.4.4 =
Release date 21 January 2021

 * Tweak: Multisite improvements including network activation and wholesale approvals for normal site administrators.

= 1.4.3 =
Release date 11 January 2021

 * Fix: Fixed priority for Public Only protection.
 * Fix: Added better detection of when shortcodes are used in the Block Editor to prevent invalid JSON errors.
 * Tweak: Support old versions of WooCommerce Product Table.
 * Tested up to WooCommerce 4.9.

= 1.4.2 =
Release date 18 December 2020

 * Fix: Ensure variation price ranges are always displayed correctly for each role.
 * Tweak: Show search query as page title on the product search results page for wholesale users.
 * Tweak: Ensure original price shows for wholesale users on lazy loaded order forms.
 * Tested up to WordPress 5.6 and WooCommerce 4.8.

= 1.4.1 =
Release date 18 November 2020

 * Fix: Search results for wholesale users.
 * Fix: Support custom decimal separators specified in WooCommerce settings or core filters.
 * Tweak: Don't show the striked out regular price when it is equal to the wholesale price.
 * Tested up to WordPress 5.5.3 and WooCommerce 4.7.

= 1.4 =
Release date 12 November 2020

 * New: Option to set a custom login redirect URL.
 * Tweak: Redirect wholesale users to the wholesale store or custom URL when using the core WordPress login.

= 1.3.4 =
Release date 4 November 2020

 * Tweak: Improve compatibility for the WooCommerce products search on the wholesale store page when categories display is being used.
 * Tweak: Adjust WooCommerce notice output structure for wider compatiblity across themes.
 * Tweak: Compatiblity with WooCommerce Product Table 2.7 settings pages.

= 1.3.3 =
Release date 15 October 2020

 * Fix: Compatibility for the WooCommerce products search on the wholesale store page.

= 1.3.2 =
Release date 1 October 2020

 * Fix: Wholesale prices were being used in the manual order page.
 * Tweak: Don't show the registration fields heading on the User edit page when there are no fields set.
 * Tweak: Replace the deprecated jQuery hover event in preparation for future WordPress core updates.

= 1.3.1 =
Release date 9 September 2020

 * Tweak: Allow PHP 5.6 back-compatibility.
 * Tweak/Fix: Make Public Only products visible to administrators and store managers.
 * Tweak: Respect the ‘Display prices in the shop’ setting when tax is not disabled for wholesale users.

= 1.3 =
Release date 27 August 2020

 * New: Option to disable coupons for wholesale users.
 * New: Option to disable tax for any or all wholesale roles.
 * New: Option to restrict shipping methods to specific roles.
 * New: Option to restrict payment methods to specific roles.
 * New: Add support for zero wholesale prices and 100% discounts.
 * Tweak: Remove Page Templates dropdown from the Wholesale Store page when editing.
 * Tweak: Always clear role pricing cache when a role is updated.
 * Tweak: Show order form layout to administrators and store managers on category archives.
 * Tweak: Hide the 'Sale' label from administrators and store managers.
 * Fix: Registration shortcode caused a PHP notice related to wc_add_notice when added via Gutenberg.
 * Fix: Empty regular price caused a PHP notice under certain discount conditions.

= 1.2 =
Release date 5 August 2020

 * New: Options to add extra fields to the wholesale registration form.
 * New: [wholesale_registration] shortcode.
 * Tweak: Minor changes to wording and labels on General settings page.
 * Fix: PHP 7.4 deprecation notice.
 * Fix: Deleting unordered roles in the Roles settings tab could cause errors.

= 1.1 =
Release date 21 July 2020

 * New: Added 'Hide Price Until Login' feature.
 * New: Allow administrators and store manager roles to see the wholesale area and pricing.
 * Fix: Ensure output of WooCommerce notices on the wholesale login/register page for certain themes.
 * Fix: PHP error relating to WooCommerce notices on the login/register shortcode when consumed via the REST API.
 * Fix: Blank shop pages on certain configurations of Divi Builder.
 * Fix: Missing string translations.

= 1.0.2 =
Release date 7 July 2020

 * Tested up to WooCommerce 4.3 and WordPress 5.4.2.

= 1.0.1 =
Release date 25 June 2020

 * Fix: Compatibility with Salient Visual Composer.

= 1.0 =
Release date 22 June 2020

 * Initial release.