The latest B2BKing release 2.2.0 introduces several new features and options. Tiered pricing is one of the most important additions. Users can now not only set prices per quantity ranges in the backend, but the plugin also automatically generates a tiered pricing table in the product's page.
The tiered pricing table generated is optional, and its design is made to adapt and work with any theme.
In the backend, in each product's pricing section and in each variation's pricing section, you can now find find price tiers, under both regular pricing, and each b2bking group's pricing.
The way this works is that you can setup regular price tiers, which apply for all users (just like regular pricing does), and then optionally set different tiers for each group, which overwrite regular tiers setup.
This is super simple to setup in any product's backend: all you need to do is enter the minimum quantity, and the final price per unit for purchases over that quantity. The price of the item will be auto-adjusted in the frontend based on the number of items in cart the user has.
The tiered pricing table is enabled by default, but optional. It can be controlled in the B2BKing panel in the product page with the dedicated checkbox: "Show Tiered Pricing Table".
Simply enabling this checkbox automatically generates a tiered pricing table based on your tiered price settings.
The table design adapts to the store's theme seamlessly. Here's an example of what this table looks like with the Porto theme:
To set up tiered pricing, this can be achieved by setting up meta data as well
Tiered pricing can be set generally for the item (Regular), and for each individual plugin group
1) To set regular tiered pricing for a product or variation, you would set the following meta key:
b2bking_product_pricetiers_group_b2c = 10:90;20:80;50:70;
This corresponds to the following price table:
2) To set tiered pricing for a group, you would set the meta data based on group id. For example:
b2bking_product_pricetiers_group_27 = 10:75;20:50;100:25;
This corresponds to the following price table for the VIP Group (ID 27):
3) Example of what it looks like in the database (wp_postmeta table):
key = b2bking_product_pricetiers_group_b2c for B2C users
value = quantity:price;quantity:price;quantity:price;
looks like this in the database:
To add the tiered price table to the product page, you can use:
This also supports product IDs, for example:
This way you can display multiple tiered tables by specifying the product IDs you're requesting the tables for.
Another parameter you can use is allvariations=yes, for variable products, for example:
This can be added to the description of a variable product to show a table for each of its variations.
Tiered price tables can now also be created for multiple products at once with rules. Read more about tiered price rules.
Powered by BetterDocs