Okay
  Public Ticket #3397558
Custom Pricing Per Customer
Closed

Comments

  •  4
    Mohamed started the conversation

    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,219
    WebWizards replied

    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://woocommerce-b2b-plugin.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