Palletry Wholesale Order Rules for WooCommerce

By Abd El Rahman Mohamed Mohamed

0+ active installationsVersion 0.2.0

Minimum order quantity and amount for wholesale customers, plus a wholesale discount. Works with the WooCommerce Cart and Checkout blocks.

Description

Sell wholesale and retail from one WooCommerce store. Trade customers get their own minimum order and their own price. Everyone else shops as normal.

Palletry Wholesale Order Rules adds three things to any customer role, such as “Wholesale customer”:

  • Minimum order quantity, for example “at least 12 items”.
  • Minimum order amount, for example “at least $100”.
  • Wholesale discount, for example “10% off the regular price”.

A customer below the minimum sees exactly what is missing, such as “You have 11, so please add 1 more” or “You are $12.00 short”. They cannot check out until they meet it. Guests and retail customers never see these rules.

All of this is free: add as many rules and roles as you need. There are no limits and no upgrade nags.

Try it now: click Live Preview above for a demo store that runs in your browser. Log in as wholesale with the password wholesale to shop as a trade customer.

Why store owners choose it

  • Built for today’s WooCommerce. It works with the Cart and Checkout blocks, which are the default in new stores, as well as the classic checkout.
  • Cannot be bypassed. It checks every route to checkout: the block checkout, the classic checkout, the Store API and add-to-cart links.
  • Fast and light. No scripts or styles on your storefront and no database tables. It does nothing for guests and retail shoppers.
  • Private. No tracking, no external requests and no ads in your dashboard.
  • HPOS compatible. Works with High-Performance Order Storage.

Common setups

  • Wholesale minimum: wholesale customers must order at least $200 and get 15% off.
  • Case quantities: trade buyers must order at least 24 items in total.
  • Several trade levels: “Silver” customers order at least $100 and get 10% off, while “Gold” customers order at least $500 and get 20% off. Create the roles with any role editor and add one rule each.

Pro add-on

Palletry Wholesale Order Rules Pro is a separate add-on for stores that need more:

  • Minimums per product category or per product.
  • “Sold in multiples of” pack sizes, for example cases of 6.
  • Quantity price tiers, for example 12+ at $3.00 each or 48+ at 20% off.
  • Wholesale prices and a tier table on product and shop pages.
  • Cart messages such as “Add 4 more to pay $3.00 each”.

Everything in the free plugin works fully without Pro.

Installation

  1. Install and activate WooCommerce.
  2. Install and activate Palletry Wholesale Order Rules. It creates a “Wholesale customer” role.
  3. Go to WooCommerce > Wholesale rules, choose the roles, and set the minimums and discount.
  4. Give your trade customers the “Wholesale customer” role under Users.

To test, log in as a wholesale customer and add fewer items than the minimum to the cart.

FAQ

How do I set a minimum order amount for wholesale customers in WooCommerce?

Install Palletry Wholesale Order Rules, go to WooCommerce > Wholesale rules, pick the “Wholesale customer” role and enter the minimum subtotal. Wholesale customers below that amount cannot check out. Retail customers are not affected.

How do I give wholesale customers a discount in WooCommerce?

Enter a percentage in the rule’s “Wholesale discount” field. The discount is taken off the regular price in the cart for customers with that role.

Does it work with the WooCommerce Cart and Checkout blocks?

Yes. Minimum errors show in the block cart and checkout, and the order cannot be placed until the minimum is met. The classic shortcode cart and checkout work too.

Do guests see wholesale prices?

No. Rules only apply to logged-in customers with a role you choose.

Is the discount based on the sale price?

No. Wholesale prices are worked out from the regular price, so retail sales do not stack with trade discounts.

Does the minimum subtotal include tax?

It matches what your cart shows. If your store shows cart prices including tax, the minimum includes tax.

Can I use it with another wholesale or B2B plugin?

Use only one wholesale plugin at a time. Other wholesale plugins often use the same “wholesale_customer” role, so both sets of rules and prices would apply to the same customers. Dynamic pricing plugins that change cart prices can also stack with the wholesale discount.

Something is not working. How do I get help?

Go to WooCommerce > Wholesale rules, open “Support report” at the bottom and copy the text into a new topic in the support forum. The report lists your WordPress, WooCommerce and PHP versions, your checkout type, your active plugins and your rules, so problems can be reproduced quickly. It leaves out your site address and customer data, and the plugin never sends it anywhere.

Can developers extend it?

Yes. The filters wsor_has_rules, wsor_cart_errors and wsor_cart_prices let other code add its own checks and prices, and wsor_wholesale_price changes the final price of a cart item.

Changelog

0.2.0

  • First public release.