Hi @hwsiew, thanks for reaching WCMp Support!!
Currently, the commission will be generated irrespective of the payment method. So, in order to add this flow, you have to do some custom code.
If you need reference of hook/filter, let us know.
Thread Starter
hwsiew
(@hwsiew)
Hi, can you advise which hook/filter we can use?
Thanks
Thread Starter
hwsiew
(@hwsiew)
Hi, I have checked the hook and forum thread.
The hook you mentioned doesnt do the job as it is called only for the first item (each vendor) in an order. Multiple items for the same vendor will not work in this case.
And, I dont think modifying the source code of this plugin is a good idea as mentioned in the thread.
Thanks.
Thread Starter
hwsiew
(@hwsiew)
Hi, I have found the right hook. ‘vendor_commission_amount’ is the one.
Thanks