How can we calculate commission on the total order value (including tax, shipping) instead of adding commission to product, tax, shipping separately. Adding them separately creates values of tax and shipping wrongly in the commission invoices which is not desired.
Can you please provide code to calculate commission on total order value instead please?