fixed price commission per product option

This topic contains 1 reply and 2 voices, and was last updated by towhid 9 years, 4 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
December 16, 2014 at 8:04 pm 32396
towhid 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:
  1. 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.
  2. 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?
  3. can I customize the Dokan template files like I can with the WooCommerce plugin (specifically '/templates/product-edit.php')?
Thanks
December 21, 2014 at 12:59 pm 32722
towhid towhid

Hello Chris,

Here are answers:

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 1 Posts - 1 through 1 (of 1 total)