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!