• Resolved milora

    (@milora)


    Hi, I have a problem with the currency of the commissions.
    On my store the price of an item on the checkout is calculated with the currency exchange (so an item that costs 100 Euro for a European customer will cost 120 USD for an American customer, 86.83 Pounds for an English customer, etc …)
    Unfortunately the plugin calculates the affiliate percentage always in USD, creating an error on the commissions.
    For example:
    – the European customer buys an item and pays 100 Euro
    – the affiliate (who must receive 10%) is not assigned 10 Euros but 10 dollars (which correspond to 8.32 Euro) this because the percentage is always calculated in dollars, whatever the purchase currency is.
    Is there a way to have the affiliate percentage calculated based on the purchase currency?

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

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

    (@affmngr)

    @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]
    Plugin Author affmngr

    (@affmngr)

    @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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Currency issue’ is closed to new replies.