1. Home
  2. WC Vendors Marketplace
  3. How To
  4. Commissions as a fixed dollar amount, or fixed plus a percentage.
  1. Home
  2. WC Vendors Marketplace
  3. Code Snippets
  4. Commissions as a fixed dollar amount, or fixed plus a percentage.

Commissions as a fixed dollar amount, or fixed plus a percentage.

The following code snippet will allow you to adjust how commissions are calculated in free. The only available commission type in free is percentage based.

Rather than paying a percentage of each sale, you may wish to pay a set dollar amount per sale. To do this, change the commission percentage in your settings to “5”. If you do that, you will send out $5 in commissions per item sold, rather than 5%. Of course, use your own figures and test before going live.

To change to a fixed dollar amount for commissions add the following code to your theme’s functions.php file:

To charge a percentage PLUS a fixed dollar rate, customize this by changing the $per_item_addition to a dollar amount of your choosing in the code below, and the WC Vendors will charge the dollar amount plus the commission percentage you have configured in your settings panel. Credit for this code goes to nhadsall on our Help Forums!

To change to a fixed dollar amount plus a percentage for commissions add the following code to your theme’s functions.php file:

 

Pro Tip:

This commission structure is built into WC Vendors Pro

filters

Updated on December 20, 2016

Was this article helpful?