Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Platform – Any Way to Show the Product Names on Affiliate Page?
Tagged: affiliate page, Product Name
- This topic has 11 replies, 3 voices, and was last updated 12 years, 6 months ago by skyfield.
-
AuthorPosts
-
May 12, 2012 at 6:20 pm #6310skyfieldSpectator
Hello. I’m using WP Affiliate Platform (v 5.1.4) with eStore (v 6.6.7) and WordPress (v3.3.2). Is there any way to show the names of purchased products on the sales records in the affiliate page?
May 13, 2012 at 7:34 am #45020adminKeymasterNo, we only capture the Product ID for eStore and affiliate integration so a product can be uniquely identified (sometimes you can have multiple products with same or similar names). Also, the affiliate plugin integrates with a range of other solutions and not all of them provide these details so its hard to capture them.
May 13, 2012 at 7:39 am #45021skyfieldSpectatorIs there any way to show Product ID, instead of product name, on the sales records in the affiliate page?
May 14, 2012 at 12:26 am #45022PeterMemberHi,
By “sales records in the affiliate page” do you mean the Sales/Comm page in the Affiliate menu?
If so this currently does show product Id in a column represented as “Item ID”.
May 14, 2012 at 3:20 am #45023adminKeymasterThis information is not shown to the affiliate (it is only available to the admin) but it should be doable with a small tweak. Are you okay with changing some PHP code in the plugin? If you are then let me know which affiliate view option you are using (exaplained in the following page) and I will give you some instruction:
http://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315
May 14, 2012 at 4:22 pm #45024skyfieldSpectatorI’m okay with changing some PHP code in the plugin. I’m using stand-alone affiliate area (Option 1). Thank you.
May 14, 2012 at 11:36 pm #45025adminKeymasterOkay, open the “sales.php” file from the “wp-affiliate-platform/affiliates” directory and find the following block of code:
print round($resultset->payment,2);
print " ";
print $currency;Once you find it, change it to the following:
print round($resultset->payment,2);
print " ";
print $currency;
print " (Item ID: ".$resultset->item_id.")";This will show the item ID next to the commission amount.
May 15, 2012 at 2:53 pm #45026skyfieldSpectatorThanks for your instruction.
I changed the PHP code in sales.php in affiliates directory as you instructed. However, Sales page in the stand-alone affiliate area does not show product ID. Any idea?
May 16, 2012 at 12:59 am #45027adminKeymasterDo you see that data (the product ID value) in the admin dashboard for that sale? Do you at leas see the “Item ID” string in the affiliate area? if you don’t then that could mean that you didn’t update the file properly.
May 16, 2012 at 5:37 am #45028skyfieldSpectatorI found that Sales page in the stand-alone affiliate area properly shows item ID only when “Start Date” & “End Date” are set and “Display Data” is clicked.
Is it possible to show item ID as soon as Sales page is loaded?
In other words, can I make Sales page in affiliate area show item ID even without specifying start & end dates?
Thank you.
May 16, 2012 at 6:50 am #45029adminKeymasterI see what you mean. On that same file look for the following block of code:
print $resultset->payment;
print " ";
print $currency;Once you find it, change it to the following and that should do it:
print $resultset->payment;
print " ";
print $currency;
print " (Item ID: ".$resultset->item_id.")";May 17, 2012 at 10:59 am #45030skyfieldSpectatorSales page in affiliate area now shows item ID.
Thank you so much for your help.
-
AuthorPosts
- You must be logged in to reply to this topic.