Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Tax and commission
- This topic has 12 replies, 2 voices, and was last updated 5 years, 2 months ago by WCFM Forum.
- AuthorPosts
- October 11, 2019 at 2:19 am #86145patrickParticipant
Hi, did send you an email but am a little unsure if it went through. we are struggling to get the system calculated and show how much the vendor should have paid out and how this is calculated.
What we want is for the payout to be calculated in this way:
Product inc tax 100, –
Tax 25%. 20, –Net product price. 80, –
Commision to admin 30%With number: Commision: 80, – x 30% = 24, – + 25% = 30, –
Explained: Commision: Net x commission in% + Tax = Gross CommsisonAnd invoice for payment to vendor must also be specified with Tax, in accordance with the law
Attachments:
You must be logged in to view attached files. - October 14, 2019 at 10:43 am #86737WCFM ForumMember
HI,
Kindly show me your commission setting screenshot.
https://wclovers.com/wp-content/uploads/2019/10/commission-128×72.jpg – it’s not seem to me, you have set commission for Admin 30%
Thank You
- October 14, 2019 at 4:57 pm #86867
- October 15, 2019 at 1:19 pm #86936patrickParticipant
I see that it calculates the wrong commission. It says 30% on admin, but it calculates 20%.
- October 15, 2019 at 2:53 pm #86948patrickParticipant
I’ve discovered a bug.
If I enable deduct tax from vendor’s commission, it will not turn off again. - October 16, 2019 at 12:48 pm #87111WCFM ForumMember
HI,
If I enable deduct tax from vendor’s commission, it will not turn off again.
– Are you using latest version of WCFM Marketplace, 3.2.4?
If not, please update and take a look.
Thank You
- October 16, 2019 at 1:24 pm #87117patrickParticipant
Hi,
Im using latest version!
- October 17, 2019 at 5:02 pm #87375patrickParticipant
How do I get the commission calculated in this way?
Commision: 80, – x 30% = 24, – + 25% = 30, –
Explained: Commision: Net x commission in% + Tax = Gross Commsison - October 18, 2019 at 10:04 am #87516WCFM ForumMember
Hi,
Commision: 80, – x 30% = 24, – + 25% = 30, –
– Sorry, I don’t get this clearly.
Do you want to deduct “commission tax” from Admin Fee?
Thank You
- October 18, 2019 at 12:52 pm #87553patrickParticipant
No, we have to add tax on the admin commission fee. Since this is a service we sell to the vendor and then it is taxable
- October 21, 2019 at 9:32 am #87898WCFM ForumMember
Commision: 80, – x 30% = 24, – + 25% = 30, –
– Kindly breakup this for me. What is product/service cost, what commission setting is there and how commission tax deducted!
Thank you
- October 21, 2019 at 3:30 pm #88046patrickParticipant
Sure!
Gross product price= 80,-
Percent commission= 30%
Gross commission= 24,-
Percent Tax add on commission= 25%
Net commission to admin= 30,-So the goal here is that we are adding 25% tax on commission to admin. Attaches image of settings
Attachments:
You must be logged in to view attached files. - October 23, 2019 at 11:54 am #88448WCFM ForumMember
HI,
Please add this code to your site –
add_action( 'wcfmmp_order_item_processed', function( $commission_id, $order_id, $order, $vendor_id, $product_id, $order_item_id, $grosse_total, $total_commission, $is_auto_withdrawal ) { global $WCFM, $WCFMmp, $wpdb; if( apply_filters( 'wcfm_is_admin_fee_mode', false ) ) { $commission_rule = unserialize( $WCFMmp->wcfmmp_commission->wcfmmp_get_commission_meta( $commission_id, 'commission_rule' ) ); $gross_sale_order = (float) $WCFM->wcfm_vendor_support->wcfm_get_gross_sales_by_vendor( $vendor_id, '', '', $order_id ); $commission_tax = (float) $WCFMmp->wcfmmp_commission->wcfmmp_get_commission_meta( $commission_id, 'commission_tax' ); $total_commission += $commission_tax; $admin_fee = (float) $gross_sale_order - (float) $total_commission; if( isset( $commission_rule['tax_enable'] ) && ( $commission_rule['tax_enable'] == 'yes' ) ) { $commission_tax = $admin_fee * ( (float)$commission_rule['tax_percent'] / 100 ); $total_commission -= (float) $commission_tax; $WCFMmp->wcfmmp_commission->wcfmmp_delete_commission_meta( $commission_id, 'commission_tax' ); $WCFMmp->wcfmmp_commission->wcfmmp_update_commission_meta( $commission_id, 'commission_tax', round($commission_tax, 2) ); $wpdb->update("{$wpdb->prefix}wcfm_marketplace_orders", array('total_commission' => $total_commission), array('ID' => $commission_id), array('%s'), array('%d')); } } }, 50, 9 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- AuthorPosts
- The topic ‘Tax and commission’ is closed to new replies.