A deal you can't resist! Get upto 35% Off on this entire cyber week.

02Day 11Hr 25Min 58Sec

fixed commission per order not items nor units

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate fixed commission per order not items nor units

Viewing 2 reply threads
  • Author
    • #120460

      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
      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?

      : You have this code snippet running – how is your outcome based on the example (1$ or 2$)?

    • #121775


      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

    • #121787


      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.

      Thank you

Viewing 2 reply threads
  • You must be logged in to reply to this topic.