Yeah, modify the customer name variable to use the following:
$customer_name = $this->ipn_data['first_name']."%20".$this->ipn_data['last_name'];
Yeah, modify the customer name variable to use the following:
$customer_name = $this->ipn_data['first_name']."%20".$this->ipn_data['last_name'];
Thanks. That worked.
Mike M
Hi,
I too bought iDevAffiliate to enable my Affiliates to have 1 admin centre across
my multiple websites. Do I understand correctly that I need to modify the WP eStore php files (mentioned above) on all the domains I am tracking sales/leads for?
(logic says yes). If so, can I modify 1 lot and then copy it across or are php files website specific. I am not much of a programmer so not sure if php files contain certain values that are updated.
Thanks for your help.
William
You can modify one PHP file and copy it accross to all your sites.
Sorry, I must be missing a step somewhere.
What integration method should I choose on the iDev side? I cannot see WP eStore in the
looong list, choosing Paypal BuyNow & Subscriptions requires a php page, and the
only other option I see is Generic Tracking Pixel; which I saw you addressed in another post as not working.
Thanks for your insights.
Regards,
William
To be honest with you I don't know what to do on the iDev side. Some of my users wanted to integrate iDev with eStore so I did whatever they asked me to do on the eStore side.
You should be able to ask iDev something like the following to find the answer though:
"Which integration method should I choose to award commission from a post payment processing script? The post payment processing script is the IPN handling script in this case."
Ok,
I got it to work with the Generic Tracking Pixel Method, but with Amin007's code above.
Oh yes, and by changing mysite.com in the above Prepared URL with my actual site name (blush).
SO now I need to get fancy and pass on a commission % based on the sales amount in the prepared URL. I used this code but that did not work. What syntax should I use?
This was not working for me:
$prepared_url = "http://www.xxx.com/idevaffiliate/sale.php?profile=72198&idev_saleamt=".$sale_amount."&idev_ordernum=".$order_num."&ip_address=".$ip."&idev_option_1=".$customer_name"&idev_commission=0.25 * ".$sale_amount.";
Thanks,
William
Don't you need to change the profile number to something that matches your account?
profile=72198
No, the profile number is ok. The prepared url DOES work correctly without this line:
&idev_commission=0.25 * ".$sale_amount.";
so I thought it must be in the syntax or the placing of those "".
If I make it a fixed number it works OK too:
&idev_commission=2.50;
I thought you just pass in the sale amount and it will calculate the commission for you so not sure why you have to pass in the exact commission amount. In my original example I didn't have the commission amount (idev_commission) field in the prepared URL.
Anyway, there is a mistake in your prepared URL that I just noticed. You should be able to do the following if you need to pass in the commission amount. First calculate the commission amount like the following:
$commission_amt = 0.25 * $sale_amount;
Now use the value of this variable to pass in the commission amount:
&idev_commission=".$commission_amt."
So instead of &idev_commission=0.25 * ".$sale_amount." use the following:
&idev_commission=".$commission_amt."
You must log in to post.