Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Include shipping in Commission calculation
- This topic has 13 replies, 3 voices, and was last updated 4 years, 7 months ago by SebastianFloKa.
- AuthorPosts
- February 17, 2020 at 3:46 pm #107447wayneglass03Participant
How can i Include shipping in Commission calculation, i do not see any options……
- February 17, 2020 at 6:28 pm #107461SebastianFloKaParticipant
… did you check the option “shipping goes to vendor” in settings –> commission already?
- February 19, 2020 at 12:13 am #107700SebastianFloKaParticipant
… 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. - February 19, 2020 at 2:57 am #107715wayneglass03Participant
Stripe is calculating gross, WCFM the net. Seems a bit silly not having an option of either.
- February 19, 2020 at 3:25 pm #107838WCFM ForumMember
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’ );
- February 19, 2020 at 5:02 pm #107857wayneglass03Participant
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. - February 19, 2020 at 8:35 pm #107889SebastianFloKaParticipant
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 checkedThen 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. - February 24, 2020 at 4:16 am #108425SebastianFloKaParticipant
… 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? - March 3, 2020 at 3:00 am #109602SebastianFloKaParticipant
… up …
- April 6, 2020 at 6:14 pm #115944SebastianFloKaParticipant
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 - April 12, 2020 at 12:23 pm #118319WCFM ForumMember
What is your WCFM – WooCommerce Multivendor Marketplace plugin’s version?
- April 12, 2020 at 2:33 pm #118391SebastianFloKaParticipant
3.3.7.
- April 12, 2020 at 2:42 pm #118398SebastianFloKaParticipant
attached a picture of all current WCFM versions
Attachments:
You must be logged in to view attached files. - April 18, 2020 at 7:20 pm #120338SebastianFloKaParticipant
Hi,
just checked and the error message now disappeared. If this was part of last update – Thank you.
closed for me.
- AuthorPosts
- You must be logged in to reply to this topic.