Hi! I'm using your plugin for long period and it's great, but in my case one missing feature causing me not to use it on other sites. Maybe I'm missing something but it would be great if product discounts could be applied based on user role and product attribute, in my case product brand. In my experience, it is common practice to join discounts based on product brand. Hope you will consider this upgrade.
You will need to replace 'brand' (where it says return 'brand') with the name / slug of your taxonomy. It might be something slightly different such as "pa_brand", or "product_brand" on your site.
You should then be able to see the following when creating rules:
Hi! I'm using your plugin for long period and it's great, but in my case one missing feature causing me not to use it on other sites. Maybe I'm missing something but it would be great if product discounts could be applied based on user role and product attribute, in my case product brand. In my experience, it is common practice to join discounts based on product brand. Hope you will consider this upgrade.
Thanks,
Marko
Hello Marko,
Thank you for the feedback,
This is something we are working on and looking to add to future updates.
It is already possible to apply dynamic rules to Taxonomies like Brand. To do that, add this PHP snippet to your site:
You will need to replace 'brand' (where it says return 'brand') with the name / slug of your taxonomy. It might be something slightly different such as "pa_brand", or "product_brand" on your site.
You should then be able to see the following when creating rules:
Currently there's however no option to set rules based on WP User Roles (only B2BKing's own groups can be used). However, you can make B2BKing create a role for each group and sync group and role: https://woocommerce-b2b-plugin.com/docs/how-to-use-wp-roles-with-b2bking/
Kind regards,
Stefan