Javascript conflict with UpdraftPlus

Javascript conflict with UpdraftPlus

[notification type=」alert-info」 close=」false」 ]NOTE: This conflict has been resolved as of WooCommerce Wholesale Prices Premium 1.6.4, please see the changelog for details.[/notification]
We were recently notified of a javascript conflict which effects the function of a popular backup plugin called UpdraftPlus.
The issue is that UpdraftPlus uses a lot of AJAX calls and CRON calls in it』s general function and as such we should not be attempting to load our javascript files during those calls.
You can easily get around the issue by pasting the following code in your theme』s functions.php:
function fixWWPPUpdraftConflict() {
if (DOING_AJAX || DOING_CRON) {
global $wc_wholesale_prices_premium;
remove_action('admin_enqueue_scripts', array( $wc_wholesale_prices_premium, 'loadBackEndStylesAndScripts' ));
}
}
add_action('init', 'fixWWPPUpdraftConflict', 99);

Can I Order On Behalf Of My Wholesale Customers?

Can I Order On Behalf Of My Wholesale Customers?

Unfortunately, due to the way the WooCommerce core admin interface is currently coded, it makes it quite difficult for WooCommerce Wholesale Prices and Premium to modify the pricing on the fly for backend manual orders in WooCommerce.
We do however have a valid workaround which is to use the very good User Switching plugin by John Blackbourn. This plugin lets you assume the identity of another user on the site and do handy things like placing orders for them in WooCommerce.
One of our favourite suggestions is to use this in combination with the WooCommerce Wholesale Order Form plugin which makes for a very speedy and efficient ordering process that is fast enough to use over the phone.
Hope this helps!

How to Install and Activate the Plugins for Multisite

How to Install and Activate the Plugins for Multisite

WordPress Multisite allows you to create a network of sites on a single WordPress installation. And if our plugins are installed and running on a Multisite, then it』s important to know how to properly activate and update them.
Installation On Multisite
To install the Wholesale Suite plugins, the Super Admin must install the plugins on the Network site. This will make the plugins available to all of your subsites.
Then go to your Settings > WWS License to activate your licenses.
Afterwards, you can freely deactivate the plugins on your Network site if you don』t need them there and only activate it to the subsite where you need them to.
Updating The Plugins In A Multisite Environment
When updating the plugins, simply go to the Network site and activate the plugins to get the new update notice. Once they are updated on the Network site, the plugins should also be updated on all of your subsites as well.
License Requirements For Multisite
Please note that you must have an Agency level license to activate the plugin and to receive continuous updates for a multisite environment.

How to Redirect Customers after Log in or Sign out

How to Redirect Customers after Log in or Sign out

You can easily redirect your customers to a certain page after logging in or signing out.
Simply go to WooCommerce > Settings > Wholesale Lead > General, and set the Log In Redirect Page and Log Out Redirect Page.

Please note that the login redirect only applies when you use the Wholesale Login Page of WooCommerce Wholesale Lead Capture, it will not redirect users if they login via your My Account page or other means.

How to Fix the Security Check Fail in the Wholesale Registration Form

How to Fix the Security Check Fail in the Wholesale Registration Form

When you encounter a Security Check Fail on the Wholesale Registration Form, this issue is usually caused by a caching plugin.
Kindly check if you have a caching plugin installed. If yes, you need to exclude the Wholesale Registration Page from the caching rules or temporarily deactivate the plugin to check if this will resolve the issue.
Also when testing, please clear the browser cache or test it using a private or incognito mode on your browser.
Another thing to consider is if your hosting implements a caching feature on their server. WPEngine, Flywheel, and Kinsta are some of the popular hosting companies that implement server caching. If your host implements it, you』ll need to contact your hosting provider to exclude the Wholesale Registration form page from the caching rules.
If you are still running into problems even after disabling the cache, feel free to reach out to our friendly support team for advice.

How to fix the admin-side product listing loading slow when Wholesale Prices Premium is active

How to fix the admin-side product listing loading slow when Wholesale Prices Premium is active

If you experience a slow loading on your product listing (Products > All Products) when our Wholesale Prices Premium is active, there are two possibilities:

You are loading too many products on your admin product listing; OR
You might have a lot of variable products in your product list

To fix the former, goto the Products->All Products view, then click Screen Options on the top right and adjust the products shown to 20.
For the latter, please keep in mind that Wholesale Prices Premium provides multiple wholesale pricing options for your products, and if you have a lot of variations, it takes time for the plugin to check, calculate and display the wholesale price on the product listing page.
If this is the case, we suggest enabling the Hide wholesale price on admin product listing on WooCommerce > Settings > Wholesale Prices > Price. This will disable the wholesale price calculation in your product listing page, which will result in much faster loading time.

How to translate the Access Denied page with WPML

How to translate the Access Denied page with WPML

In order to create a translation for the Access Denied Message, you will need to create a wpml-config.xml file and put it inside your site』s /wp-content/plugins/woocommerce-wholesale-order-form/ root folder.
Please copy the code below and save it as wpml-config.xml

Afterward, you should be able to create a translation for the Access Denied Message using WPML by following the steps below:

First, create the translation for the order form page
Go to WPML > Theme and plugins localization
Select WooCommerce Wholesale Order Form under String in the plugins
Click Scan selected plugins for strings
Go to WPML > String Translation
Choose the selection in Select strings within domain
Choose admin_texts_wwof_permissions_noaccess_title for the title translation and later after saving choose admin_texts_wwof_permissions_noaccess_message for the message translation
Click 「translations」 in the list (on the right)
Put the translation for the other languages there
Enable *Translation is complete*
Click Save

It should now show the correct translation when you switch language in your site』s front end.

How to Disable the Redirection of the Registration Page to My Account Page when user is logged in

How to Disable the Redirection of the Registration Page to My Account Page when user is logged in

By default, logged in users that view the Wholesale Registration Page will be redirected to the My Account page. This because the user is already logged in and it prevents the existing customers accidentally registering another user account.
But, if for some reason you want to let people see the registration form again (even though they』re already registered and logged in), you can remove this redirection to the My Account page using the custom snippet below (put it on your functions.php):
$wwlc_user_account = WWLC_User_Account::instance();
remove_action( 'wp' , array( $wwlc_user_account , 'registration_page_redirect_logged_in_user' ) );

Be aware that this will not show the fields of the Wholesale Registration page. Instead, they will see their name and the logout button and they will still need to log out if they want to register for another user account.

How do I retrieve my license keys?

How do I retrieve my license keys?

You can retrieve the license keys for your plugins at any time via the Licenses page in your My Account area on our site.
This page will show you the active licenses you have for your products and their expiry date.
From here you can also choose to renew or upgrade your license for each product.
A valid, non-expired license is required to retrieve updates and support for the plugins.
If you have any questions about licensing please contact us.

How to Fix Missing Wholesale Roles

How to Fix Missing Wholesale Roles

Unfortunately, we do not have a single specific reason why wholesale roles might disappear.
In many cases, this is related to the use of a third-party user role editing plugin which suddenly removes the wholesale roles in the WooCommerce > Wholesale Roles setting.
Before you proceed: We strongly advise to backup your site and database before doing anything.
There are two ways to fix this issue:
1. Move your current wholesale users temporarily to a certain role using a third party User Role Editor plugin, then delete the wholesale role that was missing. Then re-create it again on WooCommerce > Wholesale Roles and re-apply the newly created role back to your users. This is the safest way to bring back the wholesale role and ideal if you have a few users.
2. If you have a backup of your site where your wholesale roles are still present, go to the Dashboard, then adjust the URL to point to /wp-admin/options.php. Find the wwp_options_registered_custom_roles. This meta key contains serialized data for the wholesale roles that you have. Copy its value from the backup site to the existing site and it should put the missing wholesale roles back.
Remember: editing via the options.php page is risky if modified incorrectly. So if you don』t know what you』re doing here, we suggest you contact a developer.