WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Affiliate Purchases not generating commissions
- This topic has 19 replies, 3 voices, and was last updated 6 years, 6 months ago by
Shadow Labs.
-
AuthorPosts
-
September 24, 2019 at 5:09 pm #4909
awbfirm
ParticipantI just did a test purchase using an affiliate link and it did not create an affiliate commission. I don’t think I can disable all of the plugins and then do a transaction because the site will not work if I disable all plugins except WP Affiliate Manager, so I don’t understand how to test the plugin if I disable all other plugins. Anyway, I gave someone my link and had them make a purchase and the commission did not happen. They used a coupon code, but I’m not sure if that matters…
September 24, 2019 at 5:27 pm #4910awbfirm
ParticipantNote: I had someone else do an affiliate purchase as well in addition to my purchasing in an incognito window…the other person’s affiliate link and purchase should have processed correctly.
September 24, 2019 at 6:48 pm #4911awbfirm
ParticipantMy log text is as follows:
[09/24/2019 5:12 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 9333
[09/24/2019 5:12 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
[09/24/2019 5:12 PM] – SUCCESS : WooCommerce Integration – Order CPT name: order-sep-24-2019-0512-pm
[09/24/2019 5:12 PM] – SUCCESS : WooCommerce Integration – Order status: pending
[09/24/2019 5:12 PM] – NOTICE : WooCommerce Integration – Order status for this transaction is not in a ‘completed’ or ‘processing’ state. Commission will not be awarded at this stage.
[09/24/2019 5:12 PM] – NOTICE : WooCommerce Integration – Commission for this transaction will be awarded when you set the order status to completed or processing.
[09/24/2019 5:12 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 9333
[09/24/2019 5:12 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
[09/24/2019 5:12 PM] – SUCCESS : WooCommerce Integration – Order CPT name: order-sep-24-2019-0512-pm
[09/24/2019 5:12 PM] – SUCCESS : WooCommerce Integration – Order status: completed
[09/24/2019 5:12 PM] – SUCCESS : WooCommerce Integration – Total amount: 1.00, Total shipping: 0.00, Total tax: 0, Fees: 0
[09/24/2019 5:12 PM] – FAILURE : WooCommerce Integration – could not get wpam_id/wpam_refkey from cookie. This is not an affiliate sale
[09/24/2019 5:38 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 9335
[09/24/2019 5:38 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
[09/24/2019 5:38 PM] – SUCCESS : WooCommerce Integration – Order CPT name: order-sep-24-2019-0538-pm
[09/24/2019 5:38 PM] – SUCCESS : WooCommerce Integration – Order status: pending
[09/24/2019 5:38 PM] – NOTICE : WooCommerce Integration – Order status for this transaction is not in a ‘completed’ or ‘processing’ state. Commission will not be awarded at this stage.
[09/24/2019 5:38 PM] – NOTICE : WooCommerce Integration – Commission for this transaction will be awarded when you set the order status to completed or processing.
[09/24/2019 5:38 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 9335
[09/24/2019 5:38 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
[09/24/2019 5:38 PM] – SUCCESS : WooCommerce Integration – Order CPT name: order-sep-24-2019-0538-pm
[09/24/2019 5:38 PM] – SUCCESS : WooCommerce Integration – Order status: completed
[09/24/2019 5:38 PM] – SUCCESS : WooCommerce Integration – Total amount: 1.00, Total shipping: 0.00, Total tax: 0, Fees: 0
[09/24/2019 5:38 PM] – FAILURE : WooCommerce Integration – could not get wpam_id/wpam_refkey from cookie. This is not an affiliate saleSeptember 24, 2019 at 6:50 pm #4912awbfirm
ParticipantAnd this is my affiliate link that I used:
https://awbfirm.com/contract-templates?wpam_id=7September 25, 2019 at 5:28 am #4913Shadow Labs
Keymaster@awbfirm, I clicked on the link you shared but no cookie was saved into my browser. That explains why our plugin couldn’t find it after the purchase.
Is this affiliate account active? Try deactivating one plugin at a time to see if something on your site is preventing our plugin from setting this cookie. You can follow these steps:
1) Deactivate a plugin
2) Open that link in your browser
3) Check for a cookie named “wpam_id” in your browserIf it’s not set, reactivate the plugin and repeat those steps with another plugin.
September 25, 2019 at 6:28 pm #4914awbfirm
ParticipantI just did these steps with all of my plugins except for the WP Affiliate Manager plugin, of course. I checked the link each time and the cookie is not showing up on the list (in Chrome, under Inspect > Application > Storage > Cookies)
I’m not sure if I did the test wrong or what, but I still can’t get this to work.
September 26, 2019 at 12:38 pm #4915Shadow Labs
Keymaster@awbfirm, Thank you for running this test. Did you select the correct site under Cookies?
Can you please contact your web host to see if they have enabled something on the server that would prevent PHP’s setcookie function from working properly?
September 26, 2019 at 1:30 pm #4916awbfirm
ParticipantOK. I just emailed my host to see what they say about it. Thank you.
October 2, 2019 at 9:53 pm #4927October 2, 2019 at 11:33 pm #4928Leon
Participant@Shadow Labs can you please assist. Have the same problem as @awbfirm
Here is my affiliate link
https://www.entrepreneurtrainingcourses.com?wpam_id=1October 2, 2019 at 11:48 pm #4931Leon
ParticipantI do see the the browser changes it to this
https://www.entrepreneurtrainingcourses.com/?wpam_id=1October 3, 2019 at 1:03 am #4934awbfirm
ParticipantI worked with my host to figure out whether there were settings blocking the affiliate cookies. They set up caching exclusions on my site to allow the cookies to be set and it works now… I’m not very sure what they did because I am somewhat new to working with WP, but it did work.
October 3, 2019 at 4:46 am #4936Shadow Labs
KeymasterOctober 3, 2019 at 9:22 am #4937Leon
Participant@shadowlabs I tried the plugin test without any success. Could it be some other setting on WordPress ?
October 3, 2019 at 4:52 pm #4938Leon
Participant@shadowlabs. I am still waiting for feedback from our hosting provider. I did however see this on the Chrome console. It seems like it may have something to do with Samesite. How will this be resolved with WP Affiliate Manager ?
A cookie associated with a cross-site resource at <URL> was set without the
SameSiteattribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set withSameSite=NoneandSecure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <URL> and <URL>.
?wpam_id=1:1 A cookie associated with a resource athttp://doubleclick.net/was set withSameSite=Nonebut withoutSecure. A future release of Chrome will only deliver cookies markedSameSite=Noneif they are also markedSecure. You can review cookies in developer tools under Application>Storage>Cookies and see more details athttps://www.chromestatus.com/feature/5633521622188032.
?wpam_id=1:1 -
AuthorPosts
- You must be logged in to reply to this topic.