Variable Commission Rates

Is it possible to have variable commission rates. An example would be that there is a 20% commission rate for prices of $100 and below and then a 15% rate for orders over $100.

If you mean to change the vendor commission rate for the order, then please try this PHP code snippet to start. But please note that it can require further customization and testing. If you are not familiar with the code customization, then please consider hiring someone for custom work

		$order = wc_get_order($order_id);
		if(!$order || !$order->get_meta('hp_vendor')){
		// Please note that the commission rate should be equal to how much the vendor will get from the order. So if you want to set 15% as the commission rate, then please set 0.85, which is equal to 85% for the order commission rate as done below in the example
		if(100 > $order->get_total()){
			update_post_meta($order_id, 'hp_commission_rate', 0.85);
			update_post_meta($order_id, 'hp_commission_rate', 0.8);

is it possible to adjust the buyer commission rate like this aswell?

Sorry, there’s no simple code snippet for this. It would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.