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
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.