Javascript conflict with YITH WooCommerce Wishlist plugin

Javascript conflict with YITH WooCommerce Wishlist plugin

There is a javascript conflict with the YITH WooCommerce Wishlist plugin found on WordPress.org which causes an error on the WooCommerce Wholesale Order Form ordering page.
This occurs after the product is added to the cart and persists regardless of which style layout you are using.
Once the YITH WooCommerce Wishlist plugin is disabled, the issue appears to go away.
If you wish to keep using the two plugins together you can install the following workaround which removes the YITH script files on the Order Form page.
Just add this to your functions.php :
function dequeueYITHOnOrderPage() {
if (is_page('wholesale-page')) // adjust this to the slug of your wholesale ordering page, wholesale-page is the default
wp_dequeue_script( 'jquery-yith-wcwl' );
}

add_action('wp_enqueue_scripts', 'dequeueYITHOnOrderPage', 999);

How Can I Test Wholesale Pricing? I』m Logged In As Admin And Only See Retail Prices

How Can I Test Wholesale Pricing? I』m Logged In As Admin And Only See Retail Prices

One of the first things you need to do when setting up your wholesale portal is to create a wholesale test user so you can experience your site the way your users do.
It』s a good idea to set up a new user especially for testing your wholesale area and pricing. Administrators aren』t restricted in any way, but they still will not see the wholesale role pricing because this is for wholesale customers only.
You create a test user for testing your wholesale system by:

Login as admin and go to Users->Add New.
User another email address you own to create a new user and make sure you set the user role to 「Wholesale Customer」 or whichever role you want to test (note, you can add multiple roles with the WooCommerce Wholesale Prices Premium add-on plugin).
Open an Incognito/Private Browsing window (or use a different browser) so you can run two sessions at the same time.
Login with your new wholesale user, you can now use this for testing.

Why Do Australian Customers Need To Pay GST?

Why Do Australian Customers Need To Pay GST?

As we are an Australian GST registered company we are required to charge 10% GST on all transactions to Australian based customers.
The main question we are asked about this is why we do this even though we are selling in US Dollars.
The GST tax is calculated irrespective of currency, 10% is still 10% whether it is in AUD or USD and after the conversion, it is exactly the same amount.
We hope this clears up why Australian customers need to pay GST even though the transaction is in USD. For more specific questions please consult your tax accountant.

Configure Your Wholesale Price On Products

Configure Your Wholesale Price On Products

Once you have installed WooCommerce Wholesale Prices and any of the other premium plugins in the Bundle you require for your site, the first step you need to get going is to decide how you want to set up your wholesale prices and visibility settings.
Setting Wholesale Prices with WooCommerce Wholesale Prices
In the free Prices plugin, you have one option for setting your wholesale prices which is to add the wholesale price to each individual product.
If you navigate to your Product edit screen for a product, you might have noticed that your edit screen has a new field called Wholesale Prices.
Wholesale Price Field
This field is responsible for capturing the price you want to sell this product to your wholesale customers.
Simply fill in this pricing field at the price you want to sell your product at to wholesale customers and this will reflect on the front-end for those wholesale customers only. You can test this with your wholesale test user.
More advanced pricing capabilities
There are more advanced pricing options available in the WooCommerce Wholesale Prices Premium plugin.
These include:

Global % discount – for really broad wholesale pricing based on a simple % across all your products
Category based % discounts – acts in a similar way to the global setting only per category
Tiered pricing based on quantity – uses the quantity in the cart to determine further % beyond the standard wholesale price.

We have a great Advanced Pricing Control guide which gives you a detailed rundown of all the pricing capabilities of WooCommerce Wholesale Prices and the Prices Premium add-on as well.

Create A Wholesale Test User

Create A Wholesale Test User

One of the first steps you need to do after installing WooCommerce Wholesale Prices is to create a test user.
WooCommerce Wholesale Prices creates a new user role called Wholesale Customer. It』s a carbon copy of the Customer user role created by WooCommerce and is used to identify to the system which users should have access to see wholesale pricing.
To create a test user simply:

Login to your WordPress backend
Goto Users->Add New
Fill in your new user details, I recommend naming it 「Wholesale Test User」 for easy identification
Make sure you select the 「Wholesale Customer」 user role

This test user will be used to check the function of the wholesale side of your WooCommerce store from a user』s perspective.
Wholesale Test User
Can』t I just use my admin user?
Although we don』t restrict administrator users in any way (eg. product visibility restrictions in WooCommerce Wholesale Prices Premium don』t affect admins), it』s still not quite enough to just use your admin user for wholesale testing as admins will only see retail pricing on the front end.
By logging in as your wholesale test user you are checking the site』s function exactly as a real wholesale customer would use it which is the most reliable way to test.
Can I log in as both admin and my wholesale test user at the same time?
Yes, the beauty of modern web browsers like Chrome, Safari or Firefox is they have a mode called Incognito/Private Browsing mode.

Click on the File menu
Click New Incognito/Private Browsing Window

This will open a fresh new session of your browser which doesn』t know anything about you being logged into your site as your admin.
Navigate to your login page and log in as your new wholesale test user.
Now you can easily switch between making changes as your admin user and testing those changes in real time with your wholesale test user.
Alternatively, you can also skip using Incognito/Private Browsing mode and just open up the site in two different web browsers (eg. use Chrome for admin and Firefox for testing) and this will also keep the sessions separate.
What if I need more than one wholesale level?
WooCommerce Wholesale Prices Premium allows you to create additional levels of wholesale user roles so you can easily segregate your customers.
If you have created multiple wholesale customer roles you have two options for testing:

Create multiple test users with different user roles and test with each separately
Simply change the user role on your wholesale test user when you need to check the behaviour of a different user role. Sometimes it will be better if you close down your whole Incognito/Private Browsing window to refresh the session, but in most cases for simple checks this isn』t even necessary.

Can I Leave The Regular Price Blank And Still Have Wholesale Customers See The Wholesale Price?

Can I Leave The Regular Price Blank And Still Have Wholesale Customers See The Wholesale Price?

A few users have asked whether it is possible to just remove the regular retail price from their products, but still, have wholesale customers see the wholesale price.
The result in doing this is that the Add To Cart button is hidden.
Unfortunately, this is behaviour that is built deep into WooCommerce itself. A product MUST have a regular price set in order for the Add To Cart button to show on the product page.
The wholesale price field is an add-on field we add to the products in order to capture the wholesale price data.
Filling in the wholesale price field doesn』t automatically override the regular price, rather it replaces the price on the front end during the price display process and this isn』t connected to the behaviour of the Add To Cart button itself.
Still need to hide your product from retail customers?
So what is the solution if you need to hide the product from retail customers but still allow your wholesale customers to purchase it?
This is where WooCommerce Wholesale Prices Premium comes in with its product visibility restrictions.
Using the product visibility restrictions guide you can adjust your products so that they are effectively wholesale-only products.
Once done, this means you can safely fill in the regular price field (with whatever data you like) and the Add To Cart button will show, but retail customers will not be able to see the product at all.

Is there a way for wholesale customers to sign up for an account and automatically get the wholesale role?

Is there a way for wholesale customers to sign up for an account and automatically get the wholesale role?

You can, of course, have your wholesale customers sign up via the built-in WooCommerce account registration but as you mentioned it means you have the admin headache of going in and changing the user role on those people』s accounts so they get access.
If you』re looking to streamline this process and make it a bit easier to recruit and manage your wholesalers you might want to take a look at our WooCommerce Wholesale Lead Capture plugin.
It lets you provide your wholesale customers with a special registration form and a special login form and also has user moderation built in so you can approve/deny people as they sign up.
All the emails are also customisable so it gives your incoming wholesale customers a really good experience.
And, it can also be set up to automatically apply the correct wholesale role that you choose.

Fancybox issue on Order Form page when Instagram for WordPress installed

Fancybox issue on Order Form page when Instagram for WordPress installed

A small conflict exists between WooCommerce Wholesale Order Form and the Instagram for WordPress plugin (found on WP.org here).
The issue is to do with how fancybox is queued and the two plugins appear to clash, producing a JS error that can disable parts of the form.
The work around is easy enough, just pop the following code into your functions.php file in your theme:
add_action( 'wp_enqueue_scripts', 'dequeue_wwof_fancybox', 99 );
function dequeue_wwof_fancybox() {
wp_dequeue_script( 'wwof_fancybox_js' );
}

How To Use A Custom Price Suffix For Wholesale Users

How To Use A Custom Price Suffix For Wholesale Users

When setting up tax, some countries require you to show a non-inclusive price for your wholesale customers while still keeping an inclusive price for regular retail customers.
It』s pretty common to set the Price Suffix setting to something like 「Inc. VAT」, 「Inc. GST」 or even 「Inc Tax」, but when you have the wholesale prices showing throughout the store as the non-inclusive price this might need to change for those users only.
We are planning on adding this feature to our WooCommerce Wholesale Prices Premium plugin in the future, but in the meantime, this can be achieved by putting the code snippet below into your functions.php file in your theme.
function fixWholesalePriceSuffix($price_display_suffix) {
global $current_user;

if (isset($current_user) && class_exists('WWP_Wholesale_Roles')) {
$wwp_wholesale_roles = WWP_Wholesale_Roles::getInstance();
if (!empty($wwp_wholesale_roles->getUserWholesaleRole())) {
return ' ex. GST';
}
}

return $price_display_suffix;
}

add_filter('woocommerce_get_price_suffix', 'fixWholesalePriceSuffix', 10, 1);

Simply replace 『 ex. GST』 with the string of your choice and this will only be applied for wholesale users.

Force HTTPS Secure Protocol On Wholesale Login

Force HTTPS Secure Protocol On Wholesale Login

If you』ve followed our WooCommerce SSL guide you will know about the benefits of having your site on secure protocol.
But what happens if you only run part of your WooCommerce website on secure protocol?
Wholesale Customers that login via the WooCommerce Wholesale Lead Capture plugin』s login page will also likely need to login via this protocol to ensure they are browsing the website in this secure version of your site.
In this case, it might be best to ensure that anyone that logs in is redirected to the https:// version of your site to avoid issues during checkout.
You can try the following code to force the secure protocol on login redirection:
function wwlcWholesaleLeadLoginRedirect( $redirect_to, $request, $user ) {

if ( parse_url( $redirect_to, PHP_URL_SCHEME ) == 'http' ) {
$redirect_to = str_replace( 'http://', 'https://', $redirect_to );
}

return $redirect_to;

}

add_filter( 'login_redirect' , 'wwlcWholesaleLeadLoginRedirect' , 10 , 3 );

Add this code to your functions.php file in your theme and it will redirect any non-secure login to the secure version of your website and people can browse and checkout happily.