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;
}
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس