PDA

View Full Version : How to pay Percentage of total sale in Post Affiliate?


Seth
22nd January 2005, 04:18 AM
How do i set up Post Affiliate so that it gives a percentage instead of a dollar amount???

mark
26th January 2005, 02:48 PM
you have to customize the file check1.php for this.

Variable $payment contains the commission amount. You can compute the commission instead of putting fixed value.

For example

$payment = 0.05*$GLOBALS['total_amount'];


will give you 5% commission.
One more thing to do is to put your total amount into variable $GLOBALS['total_amount'] somehow. It depends on your shopping cart or payment system, I cannot advise in this without knowing more details.

regards,

mark