• Resolved ankitsethi

    (@ankitsethi)


    In our case, we need to pay commissions according to vendor product category.

    Suppose,
    Vendor selling || Commission
    t-shirts: 5%
    laptops: 2%
    Kitchen accessories : 4%

    your suggestions on how to develop this functionality in wc-vendors will be grateful for us.

Viewing 1 replies (of 1 total)
  • Hello,

    This is a feature of the soon to be released 1.6.0 of our Pro product. Otherwise you will need to custom develop this yourself. You would hook into the wcv_commission_rate filter which is where commissions are calculated. Here is some sample code on how to achieve this.

    https://gist.github.com/digitalchild/3b75a5ff599357f0a4b3

    You would also need to ensure that a product is in only one of those categories at a time to calculate correctly.

    cheers,

    Jamie.

Viewing 1 replies (of 1 total)
  • The topic ‘Category based commissions’ is closed to new replies.