Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Something big is coming for marketplace admins… MultiVendorX 5.0 is almost here. Are you ready?
Be the first to explore all the game-changing features!
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

Vendor sales commission only applied to product price

Open
Viewing 26 reply threads
  • Author
    Posts
    • #249028
      Picflick
      Participant

      Hi,

      I need your help ensuring that the vendor’s commission is applied to the product price ONLY and

        not

      other addons included in the sale.
      Herewith context:
      – I have vendors who have signed up to membership plans and I have set their default commission accordingly (see: https://ibb.co/ZpHS04qB)
      – I am using Product Options and Addons for WooCommerce plugin. This enables customer to choose how they want the product. Each of the options they select will add onto the total price of the sale. See here for an example of how I have configured it (https://ibb.co/DHkp5ZHP).

      So the issue is that when a customer checks-out with a product for $15 + addons of $49, the vendor’s commission is calculated on $64 and not $15 (see here for a test I did: https://ibb.co/qLqF6VRx). Please assist to have the commission only calculated on the product(s) values please.

      Thanks, PicFlick

    • #249040
      Anushka Sinha
      Moderator

      Hi there,
      Thank you for reaching out to us and sorry to hear you are experiencing an issue.

      By default, MultiVendorX calculates the commission based on the total price of the product.
      Now as you mentioned, you’re using a third party plugin to allow customers to customize their purchase and it hasn’t been officially tested with MultiVendorX, we can’t ensure how it affects commission calculations.

      But I am a little curious because we already have a Product Add-On module (https://multivendorx.com/docs/knowledgebase/mvx-product-addon/ ) may I ask why you’re not using it?
      However , if you’d still like to continue using the current addon plugin and want commissions to apply only to the base product price, a custom code implementation will be required on your end to modify the default flow.

      Please let us know if you need further assistance!

    • #249049
      Picflick
      Participant

      Hi,
      Thanks for your response.
      We are not using MVX Product Add-On module since this is an admin specified add-on that must be applied to all products (i.e. not done by vendors). Can your plugin apply these add-ons to all products and ensure that vendors will not have functionality to edit it?
      Please let us know where the subscription commission is handled so that I can make this custom code… which files I need to review, etc.
      Thanks

    • #249050
      Picflick
      Participant

      Please can you assist with creating this custom code. Previously, when WC-Marketplace, our plugin stack worked perfectly with the commission being applied to products. Now that it has become MVX, suddenly its changed and applied to the full order?!

    • #249051
      Anushka Sinha
      Moderator

      Hi there,
      Thank you for reaching out and for sharing your use case with us.

      The MultiVendorX Pro Product Add-On module is primarily designed to allow vendors to create and manage add-ons for their individual products. Since your requirement is for add-ons to be applied globally by the admin only, with no vendor involvement, we completely understand why this module does not align with your current workflow.

      Regarding the flow you mentioned – where the commission should be calculated only on the base product price and as you said it previously worked with WC Marketplace – we’ve forwarded this query to our development team and shared all relevant details with them.
      They are currently occupied with other tasks in their queue, kindly give us time once they’re able to review this, I will keep you informed with any updates.

      We truly appreciate your patience and understanding in the meantime.

    • #249064
      Picflick
      Participant

      Hi,
      Thank you very much for your willingness to help 🙂
      I went back to the history of our conversations in 2020 and saw that you provided the following code:

      add_filter('vendor_commission_amount', function($amount, $product_id, $variation_id, $item, $order_id, $item_id) {
          $commission_percentage = 80;
          $product = $item->get_product();
          $commission = ($product->get_price() * $commission_percentage / 100) * $item->get_quantity();
          return $commission;
      }, 10, 6);

      I tested this today and see that is correctly applied commission to the base product! The difference with our situation today of course is that 1) your codebase has evolved, and 2) every vendor will have a different commission based on the plan that they have signed up to. So would it be possible for you to help with advising how we can adjust it to pull the vendor-specific-commission.
      I think just this line needs to be amended to pull the vendor-specific commission $commission_percentage = 80;
      Open to your advice. Thanks!
      Regards,
      PicFlick

    • #249071

      Hello There,

      Thank you for sharing the old code provided by our team.

      I’ve forwarded it to our development team, and I’ll keep you updated as soon as I receive any feedback from them.

      We appreciate your cooperation.

    • #249103
      Picflick
      Participant

      Thanks. Please can you let me know before the end of the day. Thank you!

    • #249120

      Hello There, Could you please check on your end what value the $amount variable is returning in your code?

    • #249149
      Picflick
      Participant

      Thanks Sangita. I tested by pasting the variable in the console and it showed 108.
      For your reference, the order details are here: https://staging-d8a8-picflick173179870.wpcomstaging.com/wp-admin/post.php?post=21325&action=edit
      Hope this helps?

    • #249150

      Hi there,

      Thank you for getting back to us. I’ve forwarded this information to our team, and as soon as I hear back from them, I’ll keep you updated.

      Please note that since we are closed over the weekend, our responses might be slightly delayed.

      Thank you for your understanding.

    • #249165

      Hello There, I hope you’re doing well.

      The login access you shared earlier is no longer working, and we’re unable to log in to your site. Could you please share the updated credentials for your staging site so that we can access it and check the details?

      We look forward to your response.

    • #249200
      Picflick
      Participant
      This reply has been marked as private.
    • #249203

      Hi There, Thank you for sharing the updated access details. However, we are still unable to access the admin dashboard:
      https://tinyurl.com/2aywjnwz.

      Kindly verify the credentials and share the correct access details so that we can successfully log in to your admin dashboard and proceed further.

    • #249205
      Picflick
      Participant

      Hi,
      I am so sorry about this. I have edited the permissions. Please can you try again.
      Regards, PicFlick

    • #249206

      Thank you for sharing the updated access.

      Please note that our development team is currently occupied with ongoing development tasks. As a result, reviewing your custom requirement may take some time.

      Once the team is available and able to focus on this, we will get back to you with an update. We appreciate your patience and understanding.

    • #249317
      Picflick
      Participant

      Good day,
      Please can you provide an update on this. I’d like to emphasize that this is not a custom requirement but a follow up on existing on.
      Thnks and regards,
      PicFlick

    • #249332

      Hello @PicFlick,

      We completely understand your concern. However, please note that our development team is currently fully occupied with ongoing projects. Once they are available, they will review your shared code on a priority basis and assist you with your modified requirement.

      Thank you for your understanding.

    • #249619
      Picflick
      Participant

      Good day,
      Hope all well.
      Kindly following up on this please.
      Appreciate the assistance.
      Thanks, PF

    • #249620

      Hello there,

      First of all, please accept our apologies for the delay.

      As mentioned earlier, our development team has already been assigned to your request. Once they are free from their current tasks, they will review your custom requirement, and we’ll get back to you with an update accordingly.

      We truly appreciate your patience and understanding.

    • #249843
      Picflick
      Participant

      Hi,
      Following up again please. If you can atleast give me some direction how to pull the vendor’s commission % into the code.
      Will this work?

      $vendor = get_mvx_vendor_by_product( $product_id );
      $commission_percent = floatval( $vendor->commission ); // e.g., 80
      $commission = ( $product_price * $commission_percent / 100 ) * $quantity;

      Thanks,
      PF

    • #249844
      Picflick
      Participant

      But I think this only pulls the manually over-rided commission (set in Users).
      How do I pull the commission percent set for vendros who have that specific subscription plan.

    • #249846

      Hi Picflick,

      We completely understand your concern. However, we’d like to share that our entire team is currently focused on a major revamp of the plugin. Because of this, we kindly recommend holding off on implementing any customizations until the revamped version is released.

      As part of the revamp, we’re introducing significant changes to the commission flow. Any custom code added now may not be compatible with the upcoming version.

      Also once the new version is live, our team will be in a better position to guide you in achieving your required custom flow. We truly appreciate your understanding and patience.

    • #249890
      Picflick
      Participant

      Hi Team,
      We’ve been testing this commission issue extensively, and I’d like to outline why this is such a critical blocker for us at PicFlick.
      1. Current Problem
      – At present, MVX applies vendor commissions on the product base price + any add-ons/custom options, instead of only the product base price.
      – In our setup, photographers subscribe at different membership levels with different commission rates (e.g. 60%, 80%, 85%). It’s essential that commissions apply only to the product price while pulling the correct commission % from each vendor’s plan.
      – This is how WC-Marketplace worked previously, and it ensured accurate payouts.
      2. Why This Matters
      – This is not an edge case: many marketplaces use add-ons/customizations.
      – Incorrect commission payouts undermine vendor trust, distort profitability, and jeopardize our upcoming launch.
      – Fixing this logic benefits the wider MVX community, not just us.
      3. Our Attempts
      – We’ve implemented the code snippet shared previously and confirmed it works on staging, but when pushed live it doesn’t behave as expected.
      – Could there be differences in wording/hooks/functions between staging and live that explain why the code works in one environment but not the other? Any guidance here would be greatly appreciated.

      add_filter('vendor_commission_amount', function($amount, $product_id, $variation_id, $item, $order_id, $item_id) {
      	
      	$product = $item->get_product();
          $vendor_id = $product->get_post_data()->post_author;
      	$commission_percentage = floatval(get_user_meta( $vendor_id, '_vendor_commission', true ));
      	$commission_amount = ($product->get_price() * $commission_percentage / 100) * $item->get_quantity();
      	
      	error_log('--- Commission Debug ---');
          error_log('Amount: ' . $amount);
          error_log('Product ID: ' . $product_id);
          error_log('Variation ID: ' . $variation_id);
          error_log('Order ID: ' . $order_id);
          error_log('Item ID: ' . $item_id);
          error_log('Product Price: ' . $product->get_price());
          error_log('Quantity: ' . $item->get_quantity());
      	error_log('Vendor ID: ' . $vendor_id);
      	error_log('commission percentage: ' . $commission_percentage);
      	error_log('commission_amount: ' . $commission_amount);
      
          return $commission_amount;
      }, 10, 6);

      4. Urgency
      This is fundamental to our growth and launch success. We’re happy to collaborate, provide staging access, or assist with testing, but we need clarity on:
      – Whether this fix will be scheduled into development and by when, we need this to be days and not weeks
      – Or if we can get support refining the code so it works consistently in live within 48 hours
      We remain committed to MVX and believe solving this will make the platform stronger for all users. Looking forward to your guidance on how best to resolve this.
      We are also happy to provide a review on MVX at multiple levels if the above is finally fixed in its entirety.
      Kind regards,
      PicFlick

    • #249899

      Hi There, We understand that the customization you are looking for is important for your business.

      However as mentioned in our earlier response, our development team is currently focused on a major revamp of MultiVendorX. This update will bring significant improvements to the commission flow and introduce a flow of Wallet balance, which means any custom code added now may not function as expected once the revamp is released. Our team is working diligently to complete this update, and if all goes according to plan, we expect to release it within the next two weeks. Please note that we also have a short break of 4–5 days scheduled for next week, which is why our developers are fully dedicated to completing the revamp tasks as quickly as possible.

      Our immediate priority is to deliver this improved version for all our users, and we kindly ask for your patience and cooperation as we work toward that goal. You can refer to our video here for a glimpse of the new admin dashboard and vendor dashboard: https://www.awesomescreenshot.com/video/44466959?key=d8991d28d8e9392c57c54761f22028a7, https://www.awesomescreenshot.com/video/44467039?key=3f8233ade484ad6433080dff8a064291.

      That said, if the custom code solution is critical for your upcoming launch, we recommend reaching out to our service team here: https://multivendorx.com/custom-development/. They will be able to assist you with refining the code for your current setup.

      We sincerely value your commitment to MultiVendorX and are confident that the upcoming revamp will provide a more reliable and flexible foundation for your marketplace.

    • #250467
      Picflick
      Participant

      Hi,
      As per your message above, your updates should have been released. Please can you share more about this
      Thanks,
      PickFlick

    • #250474

      Hi there,

      As you may already know, we are currently working on a major revamp of our plugin. This update involves a complete restructuring of the plugin’s codebase. Because of these significant changes, any customizations made to the current version may not be compatible once the revamp is released.

      We kindly request that you wait until the new version is launched. After the update, we will be happy to help you implement the custom flow you need.

      Thank you for your understanding.

Viewing 26 reply threads
  • You must be logged in to reply to this topic.
Shopping Cart
Scroll to Top