I have hacked the plugin to meet my specific needs to allow the store owner to set a product base price and a flat commission per product (i.e: base price = $5.00, commission = $1.00, sell price = $6.00) The sum of the commissions for each store owner per order saved in the wp_dokan_orders:net_amount field. A few questions around this hack:
is there a need to implement a per-item commission option (in addition to the percentage)? If so, I am happy to send you my code to integrate it into the core system.
is there any way to use the hooks to modify the code so I can overwrite the default commission calculation instead of hacking the core files?
can I customize the Dokan template files like I can with the WooCommerce plugin (specifically ‘/templates/product-edit.php')?
1. I am really sorry to say that we do not have this option right now. I have forward this option to our developer team hope they will implement this feature in near future. You can also send your code if you want.
2. There are no hook. Please open wp-content/plugins/wedevs-dokan-plugin/includes/theme-functions.php and find '($order->order_total * $percentage)/100,' . Here all calculations accomplished. It could be a hints for you.
3. But it will not wise to customize the core file. You can create a child theme and do whatever you want.
Thank You 🙂
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘fixed price commission per product option’ is closed to new replies.