• After using the affiliate link with wpam_id=2 the cookie is set. Each website visit I can see in the account of the affiliate, so that is working. But when I start an order, the concept order in the admin I think I must already see that the order is linked to the affiliate. So I don’t see in the concept order the origin field linkt to the affiliate (origin = ‘Unknown’ and later ‘Direct’). But I don’t know I origin must be filled.

    Also done a test complete test order, and no link to the affiliate.

    I also enabled logging in your extension, but I don’t see any logging from Plugin.php class. I see the woocommerce actions defined there in this class from where the cookie is checked and used.

    I have also installed https://wpaffiliatemanager.com/affiliates-manager-woocommerce-subscription-integration/, but I don’t know if I need it.

    Best regards

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author affmngr

    (@affmngr)

    Hi, Do you have the debug option enabled in the Affiliates Manager plugin settings? If not, please enable it and make a test purchase afterwards. The log file should show backend activities in the plugin.

    Thread Starter dennisbuijs

    (@dennisbuijs)

    Yes -> (I also enabled logging in your extension). So that is the strange thing, almost no logging.

    My last order is 2384.

    Order 2345 I had done earlier and I canceled this order.

    [10/12/2024 2:48 PM] – SUCCESS : WooCommerce Subscription Integration – Order processed. Order ID: 2342 [10/15/2024 6:28 AM] – SUCCESS : WooCommerce integration – order refunded. Order ID: 2345 [10/15/2024 6:28 AM] – SUCCESS : Commission refund handler function has been invoked for PURCHASE LOG ID: 2345 [10/15/2024 6:28 AM] – SUCCESS : No commission record found for PURCHASE LOG ID: 2345. Commission cannot be refunded! [10/15/2024 6:32 AM] – SUCCESS : WooCommerce Subscription Integration – Order processed. Order ID: 2382 [10/15/2024 6:34 AM] – SUCCESS : WooCommerce Subscription Integration – Order processed. Order ID: 2383 [10/15/2024 6:36 AM] – SUCCESS : WooCommerce Subscription Integration – Order processed. Order ID: 2384 [10/15/2024 6:38 AM] – SUCCESS : WooCommerce Subscription Integration – Order processed. Order ID: 2384

    Plugin Author affmngr

    (@affmngr)

    There could be a fatal error. Can you please check the error log on the server?

    Do you have the official “WooCommerce Subscriptions” extension installed?

    Thread Starter dennisbuijs

    (@dennisbuijs)

    Yes, offical one.
    I see the logging from this extension after an order:
    SUCCESS : WooCommerce Subscription Integration – Order processed. Order ID: 2386

    I also see in the Plugin.php contructor call when I am on the front end of the website (added extra logging).

    But for some reason function WooCommerceProcessTransaction is not called and also function WooCheckoutUpdateOrderMeta is not called after new order.

    Thread Starter dennisbuijs

    (@dennisbuijs)

    I will ask my client for access hosting to see error log.

    Thread Starter dennisbuijs

    (@dennisbuijs)

    I saw the issue:

    Your official “WooCommerce Subscriptions” extension is missing function wcs_order_contains_subscription(). I disabled the plugin an now I see some action.

    PHP Fatal error:? Uncaught Error: Call to undefined function wcs_order_contains_subscription() in /mnt/web219/c3/90/512242090/htdocs/STRATO-apps/wordpress_01/app/wp-content/plugins/affiliates-manager-woocommerce-subscription-integration/affiliatemgr-wc-subscription-integration.php:27

    I have put a new order, but with Bank Transfer option:

    [10/20/2024 1:34 PM] – SUCCESS : WooCommerceProcessTransaction [10/20/2024 1:34 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 2401 [10/20/2024 1:34 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded. [10/20/2024 1:34 PM] – SUCCESS : WooCommerce Integration – Order status: processing [10/20/2024 1:34 PM] – SUCCESS : WooCommerce Integration – Total amount: 22.00, Total shipping: 0, Total tax: 3.82, Fees: 0 [10/20/2024 1:34 PM] – FAILURE : WooCommerce Integration – could not get wpam_id/wpam_refkey from cookie. This is not an affiliate sale

    Order with online payment:

    WooCommerce Integration – Order processed. Order ID: 2402 [10/20/2024 1:44 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded. [10/20/2024 1:44 PM] – SUCCESS : WooCommerce Integration – Order status: processing [10/20/2024 1:44 PM] – SUCCESS : WooCommerce Integration – Total amount: 13.00, Total shipping: 0, Total tax: 1.07, Fees: 0 [10/20/2024 1:44 PM] – FAILURE : WooCommerce Integration – could not get wpam_id/wpam_refkey from cookie. This is not an affiliate sale

    Conclusion:
    WooCheckoutUpdateOrderMeta is not called, but only WooCommerceProcessTransaction().

    I tried to execute function WooCheckoutUpdateOrderMeta() in WooCommerceProcessTransaction() but it is not reading the cookie ‘No affilie cookie found’, and the cookie is there.

    So very strange !!

    Plugin Author affmngr

    (@affmngr)

    What version of the extension are you using?

    Thread Starter dennisbuijs

    (@dennisbuijs)

    The latest version,
    Affiliates Manager WooCommerce Subscription Integration 1.1.5 but disabled.
    WP Affiliate Manager 2.9.38
    and WooComerce 9.3.3

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.