We are currently doing it on the total ex shipping
so the pants points are taken off beforehand and then the comission is paid on the remainder
so for example our tracking script looks like this
Code:
{section name=oi loop=$orders}
{assign var="aff_order" value=$orders[oi].order}
{math assign="temp_total" equation="x-y" x=$aff_order.total y=$aff_order.shipping_cost}
{literal}
<script language="javascript" src="https://scripts.affiliatefuture.com/AFFunctions.js"></script>
<script language="javascript">
var merchantID = XXX;
var orderValue = {/literal}'{$temp_total}'{literal};
var orderRef = {/literal}'{$aff_order.orderid}'{literal};
var payoutCodes = '';
var offlineCode = '';
AFProcessSaleV2(merchantID, orderValue, orderRef,payoutCodes,offlineCode);
</script>
{/literal}
{/section]