Home Dokanmultivendor Dokan Multi Vendor Add Multiple Commission Types Example

Dokan Multi Vendor Add Multiple Commission Types Example

by therichpost
0 comments
Dokan Multi Vendor Add Multiple Commission Types Example

Hello guys how are you? Welcome back to my channel. Today in this post I am going to show you Dokan Multi Vendor Add Multiple Commission Types Example.

Guys I have used both latest versions WordPress 6.3 and WooCommerce 8.1.

Live Demo

Guys if you are new in WordPress or in WooCommerce then please check the below links for some good tutorials:

  1. WooCommerce Hooks
  2. WordPress Tricks
  3. WordPress Hooks
Dokan Multi Vendor Add Multiple Commission Types Example
Dokan Multi Vendor Add Multiple Commission Types Example

Guys here is the working code snippet and please use it carefully:

1. Guys here is the code snippet checks for various tabs in woocomerce product page in admin panel and you need to add your theme’s functions.php file:

add_action('woocommerce_product_options_advanced ', function() {
  woocommerce_wp_text_input([
        	'id' => '_admin_commission_2',
          'label' => __('Admin Commission 2', 'txtdomain'),
  ]);
});

2. Guys here are more hooks:

  • woocommerce_product_options_general_product_data (“General”)
  • woocommerce_product_options_shipping (“Shipping”)
  • woocommerce_product_options_related (“Linked Products”)
  • woocommerce_product_options_attributes (“Attributes”)
  • woocommerce_product_options_advanced (“Advanced”)
  • woocommerce_product_options_inventory_product_data (“Inventory”)

This is it guys and if you will have any kind of query, suggestion or requirement then feel free to comment below.

Jassa

Developer’s King

Thanks

You may also like

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.