Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › iDev Affiliate and WP eStore Integration
Tagged: affiliate, iDev Affiliate Integration, integration
- This topic has 23 replies, 5 voices, and was last updated 13 years, 7 months ago by amin007.
-
AuthorPosts
-
May 23, 2010 at 2:28 pm #19813amin007Participant
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.”
May 31, 2010 at 10:20 am #19814williamMemberOk,
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
May 31, 2010 at 1:56 pm #19815amin007ParticipantDon’t you need to change the profile number to something that matches your account?
profile=72198
May 31, 2010 at 7:45 pm #19816williamMemberNo, 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;
June 1, 2010 at 12:33 am #19817amin007ParticipantI 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."
June 1, 2010 at 7:55 am #19818williamMemberThanks very much Amin, that did the trick!
June 2, 2010 at 12:54 pm #19819hunterMemberHI, Looking like a interesting thread going on. Its good that people are actually willing to share their views on this topic.
April 14, 2011 at 2:55 pm #19820lorenzogiacominiMemberCould someone help me?
I need to use iDevAffiliate with WP eStore.
I’m not able to find the “eStore_get_custom_field_value1()” function in the “eStore_payment_submission.php”.
Is something changed in the source code?
Thanks
Lorenzo Giacomini
April 15, 2011 at 12:10 am #19821amin007ParticipantYou don’t need to pass in the IP address anymore by manually editing the fields as I have added that in the plugin. I have updated the instruction. Please read the first thread to complete your integration:
https://support.tipsandtricks-hq.com/forums/topic/idev-affiliate-and-wp-estore-integration
-
AuthorPosts
- You must be logged in to reply to this topic.