Include shipping in Commission calculation

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 Include shipping in Commission calculation

Viewing 13 reply threads
  • Author
    Posts
    • #107447
      wayneglass03
      Participant

      How can i Include shipping in Commission calculation, i do not see any options……

    • #107461
      SebastianFloKa
      Participant

      … did you check the option “shipping goes to vendor” in settings –> commission already?

    • #107700
      SebastianFloKa
      Participant

      … I checked myself and looks like I have the same issue, see attached pictures.
      Also: Why is the basis for calculating the fee the net price of an item and this value is then deducted from gross? Calculation Basis should be gross as well.
      – If Commission is “for admin” or “for vendor” doesn’t matter –> I prefer “for admin” – is this recommended by WCFM?
      – I also use stripe split pay, but not sure if this influences the issue.
      – following codes are not required anymore, I assume. However, the outcomde doesn’t change:
      add_filter( ‘wcfmmp_is_allow_commission_on_tax’, ‘__return_true’ );
      add_filter( ‘wcfmmp_is_allow_commission_on_shipping’, ‘__return_true’ );

      Attachments:
      You must be logged in to view attached files.
    • #107715
      wayneglass03
      Participant

      Stripe is calculating gross, WCFM the net. Seems a bit silly not having an option of either.

    • #107838
      WCFM Forum
      Member

      I have already gave you a code snippet for this.

      This is the code to enable commission calculation on shipping cost –

      add_filter( ‘wcfmmp_is_allow_commission_on_shipping’, ‘__return_true’ );

    • #107857
      wayneglass03
      Participant

      Thank you for the code, I am not receiving notifications of replies on here.
      Perhaps a checkbox in the settings could be a useful feature to add at some point.
      On another note can you point me to a WC/WCFM email config using sendinblue and wp mail smtp, there is nothing available i can find of much help.

    • #107889
      SebastianFloKa
      Participant

      Sorry, but I’m not confinced yet.

      If following code is in the functions.php:

      add_filter( ‘wcfmmp_is_allow_commission_on_tax’, ‘__return_true’ );
      add_filter( ‘wcfmmp_is_allow_commission_on_shipping’, ‘__return_true’ );

      AND

      store manager –> settings –> commission settings:
      commission for admin
      commission Mode Percent
      Commission Percent 10
      Shipping cost goes to vendor checked
      Tax goes to vendor checked

      Then the commmission on products of 30€ should be 3€ –> Do we agree on this?
      If yes, how to explain attached commission invoice with a fee of 2,50€ instead of 3€?

      Attachments:
      You must be logged in to view attached files.
    • #108425
      SebastianFloKa
      Participant

      … Can we also agree on the fact that with above settings not only should appear the line of shipping details (which works perfectly fine) but the shipping costs should also be applied to calculate the total-fees, right?
      If yes, why are shipping costs not taken into consideration when calculating the total-fee?

    • #109602
      SebastianFloKa
      Participant

      … up …

    • #115944
      SebastianFloKa
      Participant

      OK, looks like I got it: could it be that the apostrophe in your code snippet doesn’t follow current php-requirements anymore. If I change to following, it looks much better:

      add_filter( 'wcfmmp_is_allow_commission_on_tax', '__return_true' );
      add_filter( 'wcfmmp_is_allow_commission_on_shipping', '__return_true' );

      So the difference is the apostrophe: ‘ instead of ‘

      Only thing is now I get following error:
      Warning: sprintf(): Too few arguments in …/wp-content/plugins/wc-multivendor-marketplace/core/class-wcfmmp-settings.php on line 466

    • #118319
      WCFM Forum
      Member

      What is your WCFM – WooCommerce Multivendor Marketplace plugin’s version?

    • #118391
      SebastianFloKa
      Participant

      3.3.7.

    • #118398
      SebastianFloKa
      Participant

      attached a picture of all current WCFM versions

      Attachments:
      You must be logged in to view attached files.
    • #120338
      SebastianFloKa
      Participant

      Hi,
      just checked and the error message now disappeared. If this was part of last update – Thank you.
      closed for me.

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