Public Ticket #3397558

Custom Pricing Per Customer

Closed
Comments
8 Tickets 4
Mohamed started the conversation 3 years ago on June 21, 2023 at 12:56pm

Hi. We have an ERP system that already has custom pricing per customer group. Is it possible to use an API to set custom pricing per customer group when using B2B King?

If this is possible, do you offer developer support as well?

2,762
KingsPlugins replied 3 years ago on June 21, 2023 at 11:00pm

Hi Mohamed,

Thank you for getting in touch,

B2BKing has a customer groups feature and it also allows setting a custom price for each group, for each product.

This can also be done programmatically. This price is simply set in a meta key of each product. You can read more about how this works here: https://b2bkingplugin.com/docs/release-1-8-0-price-lists-csv-import-export-pricing-in-the-product-page/

Basically for each product or variation you can set these 2 meta keys for each group:

b2bking_regular_product_price_group_GROUPID
b2bking_sale_product_price_group_GROUPID  

The keys would hold the regular and sale prices.

I believe you could use either the WordPress API or the WooCommerce API to achieve this.

Kind regards,

Stefan

Sign In