Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate – Display sales data to affiliates?
Tagged: Affiliate platform, affiliate url, code modification, Gravity Forms, PHP, sales data, sales report, wp affiliate platform
- This topic has 6 replies, 3 voices, and was last updated 9 years, 10 months ago by admin.
July 12, 2013 at 11:54 pm #9325
I am using the WP-Affliate Platform with Gravity forms to gather commissions on subscriptions. The affiliates are able to view their sales in their affiliate area. It only shows the date, time, and earnings. I have added the viewing of the transaction ID as well. I would like the affiliate to also view what product they sold, so that they can better manage their referrals. Is there a way to call the sales data from Gravity forms? I’m not afraid of editing a bit of code, so that is an option. I would also like an alert email sent to the affiliate when one of their referrals completes a transaction.July 13, 2013 at 11:12 pm #56552adminKeymaster
Go to settings and check the “Send Commission Notification” option which will do that alert email when someone earns a commission.
The affiliate plugin records a reference of the item/product/service that was sold (where possible). This reference is stored in the “Item ID” column of the commission/sale record. In case of the “gravity form” integration, it will store the entry ID as a reference. This is shown to you (the admin) in the sales/commission data menu.
Since you said you are okay with PHP coding I can tell you where to modify the code to show this data to your affiliates too. Which of the following affiliate area option are you using?
http://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315July 14, 2013 at 5:01 am #56553
I am using option 1, using a separate URL for the affiliate to sign in. I haven’t done anything fancy with the link name, it is still out of the box. Thanks!July 14, 2013 at 5:10 am #56554
Also, while I’m fiddling with the code, is there a way to change the end of the URL that is associated with the affiliate ID on ads? I’d like it to read “www.mysite.com/myproductpage/affiliatename” so it is easy to use on printed publications and other marketing materials. Currently it reads “www.mysite.com/myproductpage/af_id=affiliatename” when the referral clicks on the ad link I built for my affiliates. Thank you.July 15, 2013 at 1:20 am #56555wpCommerceModerator
Hi, please see this post which explains how to customize the affiliate URL:
https://support.tipsandtricks-hq.com/forums/topic/how-to-get-nicer-urlsJuly 15, 2013 at 7:39 am #56556
Thanks. I still need to know where to modify the code to show the sales data to affiliates.July 16, 2013 at 12:17 am #56557adminKeymaster
Modify the following file to show more data in the “sales” area of the affiliate portal.
Search for “print $resultset->date;” in that file to get to the area where it shows the date value.
- You must be logged in to reply to this topic.