Tax and commission

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!

Viewing 12 reply threads
  • Author
    Posts
    • #86145
      patrick
      Participant

      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 Commsison

      And 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.
    • #86737
      WCFM Forum
      Member

      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

    • #86867
      patrick
      Participant

      It seems that there are some problems with how the commission is calculated in relation to tax and they round up some numbers. Shares screenshots

      Attachments:
      You must be logged in to view attached files.
    • #86936
      patrick
      Participant

      I see that it calculates the wrong commission. It says 30% on admin, but it calculates 20%.

    • #86948
      patrick
      Participant

      I’ve discovered a bug.
      If I enable deduct tax from vendor’s commission, it will not turn off again.

    • #87111
      WCFM Forum
      Member

      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

    • #87117
      patrick
      Participant

      Hi,

      Im using latest version!

    • #87375
      patrick
      Participant

      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

    • #87516
      WCFM Forum
      Member

      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

    • #87553
      patrick
      Participant

      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

    • #87898
      WCFM Forum
      Member

      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

    • #88046
      patrick
      Participant

      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.
    • #88448
      WCFM Forum
      Member

      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

Viewing 12 reply threads
  • The topic ‘Tax and commission’ is closed to new replies.