Share website's commission with another Vendor option

Hey All,

I am planning to add an optional setting into the

WP Admin → Vendors ->Edit Vendor → Settings Box,

that says:

“Share X% of website’s commission from each sale of this vendor’s products with the vendor selected below”

X can be anything from 0 to 100
Vendor will be selected from a dropdown/search box.

It should be fairly easy with a hook that calculates the websites commission after a sale and gives some of it to another vendor, but I don’t know how to code it in PHP. Anybody can help?

Thanks in advance!


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 But as a workaround, please check this doc How to set up commissions - HivePress Help Center

Thank you for the info andrii, appreciated.

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