Multicurrency problem with WPLM
-
Hello!
If you have a multilingual website and you have a minimum order amount, you have the same amount for each currency. Poorly.
If you have a WPML plugin, this is the solution proposed by WPML. WPML invites creators to cooperate and submit corrections.
It looks like this:
This can be fixed by adding the wcml_raw_price_amount filter to CtMPAC_Application::get_minimum_purchase_value() in app/public/wp-content/plugins/minimum-purchase-amount-for-woo-cart/includes/public/ct-class-min-cart -amount -application.php:publicfunctionget_minimum_purchase_value() {$minimumCartTotal= get_option('ct_mpac_minimum_purchase_value_for_all', 0);$minimumCartTotal= apply_filters('wcml_raw_price_amount',$minimumCartTotal);/*** Filter the amount set as the minimum cart total to customize the behaviour with this hook.** @since 2.2*/$minimumCartTotal= apply_filters('ct_mpac_filter_min_cart_total',$minimumCartTotal, WC()->cart);return$minimumCartTotal;}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Multicurrency problem with WPLM’ is closed to new replies.