Commission attribution based on the coupon AND the product.
I have a (WooCommerce Subscriptions) subscription that costs 57,76€ on sale, 150€ regular price. I want to let my affiliates the flexibility to chose how much to let their client pay for my product.
For example, if their client pay 100€ (coupon 50€) I want to let my affiliate earn 100-57,76 = 47.77€ IF THE PRODUCT IS 3179.
I think this is a good starting point:
[login to view URL]
This snippet should work on my [login to view URL] child theme file.
- If something is not clear please ask in advance. No payment will be issued if your code doesn’t do exactly what I need;
- Please always comment your code. I need to understand it;
- I will provide a staging environment with all the plugins;
- Budget: 70€