View Single Post
  #6  
Old 10-19-2005, 01:36 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

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]
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote