Starting with the 4.1.0 version of B2BKing, you can now separate stock levels and stock treatment for B2B and B2C users. You can separate the stock status, backorders options, as well as actual stock quantities for both simple and variable products (optional).
To enable this, go to B2BKing -> Settings -> Other-> Stock and enable 'Separate stock for B2B & B2C'.
Once this setting is enabled, you will find additional options in the inventory panel of each product.
1. If stock management is disabled at the product level, you can set a different stock status for B2C and B2B (In stock / Out of stock):
2. If stock management is enabled at the product level, you can set a different stock quantity, as well as enable or disable backorders:
If 'Separate B2B stock' is set to 'Yes', you can set a different stock quantity. If it is set to 'No', then all users will use the same stock quantity, but you can treat backorders differently. For example, you can allow backorders for B2B users only:
3. The same options are available for each variation in the case of variable products:
In WooCommerce, allowing backorders means that users are still able to place orders, even if the product is out of stock. A common request is that you may want to enable backorders for B2B customers only, as these may be large orders where immediate availability is less important.
Here is a configuration example for a product:
In the above example, the product has gone out of stock, but backorders are enabled only for B2B.
To B2C users the product will appear as out of stock:
To B2B users, the product is still available for purchase:
It is only optional to use separate stock quantities - as mentioned, you can choose to use the same stock quantity and enable backorders only. If you do want to use separate stock quantities, the 2 stock levels will be treated entirely independently.
That means that for example when a B2B users makes a purchase, that will only reduce B2B stock levels. It is also possible that one of the 2 levels will go out of stock, while the other one will still be in stock. For now, low stock threshold notifications only work for B2C stock levels.
Let's see an example:
In the above example, there are 50 items in stock for B2C users, and 10 items that are in stock for B2B users.
B2B users will see:
B2C users will see:
How stock is displayed is also controlled through WooCommerce settings, in WooCommerce -> Settings -> Products -> Inventory -> Stock display format.
If you want to show the exact amounts in stock (e.g. 50 in stock) you would need to set it to 'Always show quantity remaining in stock'
It is now also possible to hide the precise stock quantity seen by B2C users (or hide stock completely). For example, this means you can show B2B users the exact quantity in stock (E.g. 150 in stock), but B2C users will simply see 'In Stock'. More details here.
Starting with B2BKing 4.3.30 this feature is now also compatible with WPML (being able to automatically sync stock across languages).
Importantly, you may want to enable automatic sync of stock settings when you edit a product.
To do this, go to WPML -> Settings and scroll down to 'Custom Fields Translation'. Click on 'Show system fields' on the left side, and then search for 'B2B'. You should then set the 4 keys below to 'Copy':
Powered by BetterDocs