Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › fixed commission per order not items nor units
- This topic has 2 replies, 2 voices, and was last updated 4 years, 7 months ago by SebastianFloKa.
- AuthorPosts
- April 19, 2020 at 2:07 am #120460SebastianFloKaParticipant
Hi,
I tried to make certain membership plans have commission type “percentage + fix” (for a free membership plan) and a “percentage only” commission for a payed plan. So I intend to charge this free plan the percentage plus e.g. 1$ for each order.
But with no modification WCFM applies this fixed amount to each single unit bought:
Example for commission of 1$:
3 pcs. product A -> 3* 1$ = 3$
2 pcs. product B -> 2 * 1$ = 2$
Total commission charged is 3$ + 2$ = 5$In these two threads
https://wclovers.com/forums/topic/commission-settings-not-working-correctly-please-help/
https://wclovers.com/forums/topic/commission-per-order/
you mention two different kind of code snippets as a solution:add_filter( 'wcfmmp_order_item_quantity', function( $quantity, $product_id, $variation_id, $item_price, $vendor_id, $order_id ) { return 1; }, 50, 6 );
add_filter( 'wcfmmp_is_allow_commission_fixed_per_unit', '__return_false' );
But both end up:
3 pcs. product A -> 1 * 1$
2 pcs. product B -> 1 * 1 $
Total commission charged is 1$ + 1$ = 2$Is there a way to get for certain membership plans a commission of e.g. 1$ per order not dependent on number of items, units or products?
@Craig: You have this code snippet running – how is your outcome based on the example (1$ or 2$)? - April 22, 2020 at 4:22 pm #121775SushobhanKeymaster
Hi,
This is not possible using code snippet. Currently commission is calculated against each order item so per product or per unit is supported but not one commission per order.
If you are interested in this customization, please contact us here –https://wclovers.com/setup-guidance/.Thank You
- April 22, 2020 at 4:37 pm #121787SebastianFloKaParticipant
Hi,
understand. Thanks so much for sending an answer.
So a detour would be to add a transaction fee of e.g. 1$ for all payment methods, but then it can be applied only to all membership-plans and not to specific ones.
closed.Thank you
- AuthorPosts
- You must be logged in to reply to this topic.