1. Home
  2. Knowledge Base
  3. WooCommerce Wholesale Prices Premium
  4. How Wholesale Suite works with Polylang for WooCommerce

How Wholesale Suite works with Polylang for WooCommerce

Running a multilingual wholesale store with Polylang? Your wholesale customers may switch language while they have products in the cart. WooCommerce Wholesale Prices Premium makes sure their variable products keep the right wholesale price after the switch. This article explains what the integration does and how to check it.

What you need

How it works

When a customer switches language, Polylang for WooCommerce swaps each cart item for its translation. For a variable product, it could leave the main (parent) product in the cart instead of the variation the customer picked. The parent product has no wholesale price of its own, so the item showed the wrong price, and the wholesale cart checks could remove it from the cart.

Wholesale Prices Premium puts the translated variation back in the cart after the language switch. The item keeps the wholesale price you set for that variation, and it stays in the cart.

This works automatically when Polylang for WooCommerce is active. There is no setting to turn on. Simple products are not affected, because they have no variations.

Check it on your store

  1. Log in to your store as a wholesale customer.
  2. Add a variation of a variable product to the cart.
  3. Switch the store to another language with the Polylang language switcher.
  4. Open the cart.
  5. Check that the variation is still in the cart, with its wholesale price.

Troubleshooting

A variable product disappears from the cart after a language switch. Update WooCommerce Wholesale Prices Premium to 2.1.5 or later. Then check that the variation is translated in Polylang, and that the translated variation has a wholesale price.

The wholesale price is wrong after a language switch. Open the translated variation and check its wholesale price.

Frequently asked questions

Do I need to set anything up in Wholesale Suite?
No. Premium detects Polylang for WooCommerce and applies the fix on its own.

I use WPML instead of Polylang. Does this apply?
No. This integration is for Polylang for WooCommerce. For WPML, see Missing Products When Switching to a Different Language Using WPML.

What’s next

Need help?

If you have a question or run into any issues, we’re here to help.

Was this article helpful?

Related Articles

Complete Your Purchase