WC Fields Factory
For versions before 4.1.3
- In file functions.php add next code:
add_filter('wcff_negotiate_price_after_calculation', function($price) { if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $currencies = $WOOCS->get_currencies(); $conversion_rate = $currencies[$WOOCS->current_currency]['rate']; $price = $price / $conversion_rate; } } return $price; }); - In file wp-content\plugins\wc-fields-factory\includes\wcff-negotiator.php add next code:
if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $prule ['amount'] = $WOOCS->woocs_exchange_value(floatval($prule ['amount'])); } }
This edit is inside another plugin's file, so a plugin update will undo it. Write the change down, and re-apply it after every update of that plugin — or ask its authors to include the fix on their side, which is the only version that survives. If the change is inside FOX itself, tell us: a fix that has to be re-applied by hand is a bug on our side, not a solution.