WordPress Affiliate Manager

Affiliates Management Plugin for WordPress

  • Home
  • Features
    • Screen Shots
  • Download
  • Documentation
  • Addons
  • Support
    • Support Forum
    • Forum Login
    • Forum Registration
    • Contact
    • Premium Addon/Plugin Support

[Resolved] Affiliate Purchases not generating commissions

by

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.
Viewing 15 posts - 1 through 15 (of 20 total)
1 2 →
  • Author
    Posts
  • September 24, 2019 at 5:09 pm #4909
    awbfirm
    Participant

    I 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 #4910
    awbfirm
    Participant

    Note: 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 #4911
    awbfirm
    Participant

    My 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 sale

    September 24, 2019 at 6:50 pm #4912
    awbfirm
    Participant

    And this is my affiliate link that I used: https://awbfirm.com/contract-templates?wpam_id=7

    September 25, 2019 at 5:28 am #4913
    Shadow 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 browser

    If it’s not set, reactivate the plugin and repeat those steps with another plugin.

    September 25, 2019 at 6:28 pm #4914
    awbfirm
    Participant

    I 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 #4915
    Shadow 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 #4916
    awbfirm
    Participant

    OK. I just emailed my host to see what they say about it. Thank you.

    October 2, 2019 at 9:53 pm #4927
    Leon
    Participant

    @awbfirm I have the same problem. Have you found a solution as yet ?

    October 2, 2019 at 11:33 pm #4928
    Leon
    Participant

    @Shadow Labs can you please assist. Have the same problem as @awbfirm

    Here is my affiliate link
    https://www.entrepreneurtrainingcourses.com?wpam_id=1

    October 2, 2019 at 11:48 pm #4931
    Leon
    Participant

    I do see the the browser changes it to this https://www.entrepreneurtrainingcourses.com/?wpam_id=1

    October 3, 2019 at 1:03 am #4934
    awbfirm
    Participant

    I 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 #4936
    Shadow Labs
    Keymaster

    @awbfirm, Glad to hear that the issue is resolved.

    @Leon
    , No cookie got set when I clicked on the affiliate link. Please run the plugin test first and then contact your host.

    October 3, 2019 at 9:22 am #4937
    Leon
    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 #4938
    Leon
    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 SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. 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 at http://doubleclick.net/ was set with SameSite=None but without Secure. A future release of Chrome will only deliver cookies marked SameSite=None if they are also marked Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5633521622188032.
    ?wpam_id=1:1

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 20 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Featured Addons

  • WooCommerce Coupon Tracking
  • WooCommerce Product Specific Commission

Copyright © 2026 | WordPress Affiliate Manager | Privacy Policy