Crypto2050
Forum Replies Created
-
Forum: Plugins
In reply to: [Affiliates Manager] could not get wpam_id/wpam_refkey from cookieBut your plugin does store the wpam_id cookie on the database. It also trigger a “Add commission” function when the order status is changed to completed. but can’t find why is not storing it on db as soon as the visitor lands the url with the wpam query parameter on it.
Forum: Plugins
In reply to: [Affiliates Manager] could not get wpam_id/wpam_refkey from cookieI get following error log:
[11/02/2022 9:18 PM] - SUCCESS : WooCommerce Integration - Order processed. Order ID: 12038 [11/02/2022 9:18 PM] - SUCCESS : WooCommerce Integration - Checking if affiliate commission needs to be awarded. [11/02/2022 9:18 PM] - SUCCESS : WooCommerce Integration - Order status: completed [11/02/2022 9:18 PM] - SUCCESS : WooCommerce Integration - Total amount: 60.50, Total shipping: 0, Total tax: 0, Fees: 0 [11/02/2022 9:18 PM] - FAILURE : WooCommerce Integration - could not get wpam_id/wpam_refkey from cookie. This is not an affiliate sale [11/02/2022 9:21 PM] - SUCCESS : WooCommerce integration - order refunded. Order ID: 12038 [11/02/2022 9:21 PM] - SUCCESS : Commission refund handler function has been invoked for PURCHASE LOG ID: 12038 [11/02/2022 9:21 PM] - SUCCESS : No commission record found for PURCHASE LOG ID: 12038. Commission cannot be refunded!When I looked into the postmeta table on post 12038 the _wpam_id is not there.
Forum: Plugins
In reply to: [Affiliates Manager] could not get wpam_id/wpam_refkey from cookieI was using hook as below but not success with getting the commission set for affiliate.
function process_affiliate_commision($order) { $order_status = $order->payment_complete(); if ($order_status) { $aff_id = $_COOKIE['wpam_id']; $args = array(); $args['txn_id'] = $order->get_transaction_id(); $args['amount'] = $order->get_formatted_order_total(); $args['aff_id'] = $aff_id; do_action('wpam_process_affiliate_commission', $args); } } add_action('woocommerce_order_status_completed', 'process_affiliate_commision');Forum: Plugins
In reply to: [Affiliates Manager] could not get wpam_id/wpam_refkey from cookieThen why it won’t work by using the wpma hook to process affiliate commissions as stated on your website to manually process the commission?
Forum: Plugins
In reply to: [Affiliates Manager] could not get wpam_id/wpam_refkey from cookieI am using Chauffeur Booking system by Quantica Labs from where the orders are created in woocommerce after booking a reservation.
Forum: Plugins
In reply to: [Affiliates Manager] could not get wpam_id/wpam_refkey from cookieI created an affiliate myself to test if commission shows up, with 2 different users. I am making payment using woocommerce, and also added a hook to set commission manually as stated on your wp affiliate site.
I deactivated the cache plugin but had not success.
Forum: Plugins
In reply to: [Affiliates Manager] could not get wpam_id/wpam_refkey from cookieI am not using any addon at this moment.
Forum: Plugins
In reply to: [Affiliates Manager] could not get wpam_id/wpam_refkey from cookieI can see cookie is set, but comission is not getting added to affiliate .
10/26/2022 7:57 PM] - SUCCESS : WooCommerce Integration - Order processed. Order ID: 12016 [10/26/2022 7:57 PM] - SUCCESS : WooCommerce Integration - Checking if affiliate commission needs to be awarded. [10/26/2022 7:57 PM] - SUCCESS : WooCommerce Integration - Order status: processing [10/26/2022 7:57 PM] - SUCCESS : WooCommerce Integration - Total amount: 60.50, Total shipping: 0, Total tax: 0, Fees: 0 [10/26/2022 7:57 PM] - FAILURE : WooCommerce Integration - could not get wpam_id/wpam_refkey from cookie. This is not an affiliate sale [10/26/2022 7:58 PM] - SUCCESS : WooCommerce Integration - Order processed. Order ID: 12016 [10/26/2022 7:58 PM] - SUCCESS : WooCommerce Integration - Checking if affiliate commission needs to be awarded. [10/26/2022 7:58 PM] - SUCCESS : WooCommerce Integration - Order status: completed [10/26/2022 7:58 PM] - SUCCESS : WooCommerce Integration - Total amount: 60.50, Total shipping: 0, Total tax: 0, Fees: 0 [10/26/2022 7:58 PM] - FAILURE : WooCommerce Integration - could not get wpam_id/wpam_refkey from cookie. This is not an affiliate sale