@milora, The commission is calculated on the purchase amount sent by WooCommerce. If you enable debug you will be able to see what that amount is.
Thread Starter
milora
(@milora)
Hi, thanks for your reply, i activated the debug but the currency is not specified, what can it depend on?
I’ll copy you the debug text
[04/23/2021 3:57 PM] - SUCCESS : WooCommerce Integration - Saving wpam_id (5) with order. Order ID: 9615
[04/23/2021 3:57 PM] - SUCCESS : WooCommerce Integration - Order processed. Order ID: 9615
[04/23/2021 3:57 PM] - SUCCESS : WooCommerce Integration - Checking if affiliate commission needs to be awarded.
[04/23/2021 3:57 PM] - SUCCESS : WooCommerce Integration - Order status: pending
[04/23/2021 3:57 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.
[04/23/2021 3:57 PM] - NOTICE : WooCommerce Integration - Commission for this transaction will be awarded when you set the order status to completed or processing.
[04/23/2021 3:57 PM] - SUCCESS : WooCommerce Integration - Order processed. Order ID: 9615
[04/23/2021 3:57 PM] - SUCCESS : WooCommerce Integration - Checking if affiliate commission needs to be awarded.
[04/23/2021 3:57 PM] - SUCCESS : WooCommerce Integration - Order status: processing
[04/23/2021 3:57 PM] - SUCCESS : WooCommerce Integration - Total amount: 13.49, Total shipping: 0.00, Total tax: 0, Fees: 0
[04/23/2021 3:57 PM] - SUCCESS : WooCommerce Integration - awarding commission for order ID: 9615, Purchase amount: 13.49, Affiliate ID: 5, Buyer Email: [email protected]
@milora, The currency is not taken into account when a commission is calculated. According to your log, 13.49 is the purchase amount that WooCommerce sent to our plugin.