How to calculate commission from subtotal instead of total?
By default, the commission is calculated from the total of the order.
You can change this in the app settings.
Go to your Shopify Admin > Apps > Affiliates & Ambassadors.
Click on the Settings tab and under Program settings, you can check "Calculate commission on subtotal instead of total".