It’s funny, that my first reply to your first post also is the same reply for this post.
KnowledgeBase articles are written for common questions. Check em out!
http://www.wcvendors.com/knowledgebase/
In there, you will find:
http://www.wcvendors.com/knowledgebase/commissions-fixed-dollar-amount-fixed-plus-percentage/
Amazing! 🙂
Thanks, Ben.
I tested the code for the base fee. It didn’t work. Once I added the code, all the payment went to my account but not the vendor account. Once I removed the code, everything was normal again. I tested it with the paypal sandbox.
Hi ilc,
Check out our free help forums, and do some searching. Some members have used other methods and other bits of code. You will find any question you ever ask answered already on our free help forums, which is why we strongly recommend you check out wcvendors.com. 😉
Ben
Hi, Ben,
The code that works on my end is
/* Add per item sold amount to commission */
add_filter( ‘wcv_commission_rate’, ‘my_wcv_custom_filter’, 10, 3 );
function my_wcv_custom_filter( $commission, $product_id, $product_price ) {
return (((WCV_Commission::get_commission_rate( $product_id ) / 100) * $product_price) – .7);
}
0.7 is the base fee which can be changed to whatever value. However, this code is only for one product. If a purchase contains multiple products, the code charge each product $0.7.
It’s custom coding, it’s all up to you to write. 🙂 But again, I’ll tell you, for a fourth time, that wcvendors.com’s free help forum already has threads just like this, with perfect working solutions. I will not be able to help you with it, that’s what the free help forums are for. If you wish to use us for custom development, it’s $49 per hour to help you with your custom work.