AffiliateWP – Easy affiliate marketing for WordPress that works
Producer: https://affiliatewp.com
How to adapt:
- open file wp-content\plugins\AffiliateWP-master\includes\integrations\class-woocommerce.php
- drop next code there as on the screen below:
$curr=$this->order->get_order_currency( ); if (class_exists('WOOCS')) { global $WOOCS; if($curr!=$WOOCS->default_currency){ $currencies=$WOOCS->get_currencies(); $amount=$WOOCS->back_convert($amount,$currencies[$curr]['rate']); } }
Request from the customer:
AffiliateWP is a plugin that allows a store owner to pay affiliates a commission. The problem is that when we are using your currency switcher plugin, the AffiliateWP plugin calculates the commission (for example, 10%) in the woocommerce base currency, but with the numeric value of the currency that the order was placed in. For example: if a product costs £290 GBP ($380 USD), the 10% commission is currently calculated by AffiliateWP as £38. But this is incorrect. The correct solution would be either £29 or $38. Do you see what I mean?
Please keep me updated. Thanks