This thread is resolved. Here is a description of the problem and solution.
Problem: You want to set a minimum order amount in multiple currencies on your WooCommerce site using WPML. Solution: We recommend adding custom code to handle multi-currency minimum order amounts. Follow these steps: 1. Open the
functions.php
file of your theme using a code editor. 2. Insert the following code at the end of the file:
3. Save the changes to the file. This code snippet adjusts the minimum cart total to support multiple currencies through WPML. Additionally, we suggest contacting the developers of the 'Minimum Purchase Amount For Woo Cart – For WooCommerce' plugin and encourage them to participate in our Go Global Program. This will help ensure their plugin's compatibility with WPML.
If this solution does not apply to your situation, or if it seems outdated, please check the related known issues and confirm that you have the latest versions of themes and plugins installed. If issues persist, we highly recommend opening a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I want to enter a minimum order amount in several currencies on my site hidden link.
Symptoms:
No specific issue or error message mentioned.
Questions:
Do you have any solution for entering a minimum order amount in several currencies?
Do you recommend any free plugin that will make this possible?
Is there an option in WPML that I haven't found?
Maybe you already have a solution that addresses this?
This ticket has been inactive for quite a while. I didn't get a reply from you. So, I've transformed this chat into a support ticket because you may still need our help. If you do, please reply to this ticket, and one of our supporters will continue helping you.
Please check the chat and my replies after you stopped responding.
I installed the Minimum Purchase Amount For Woo Cart – For WooCommerce plugin on my test site with WooCommerce and WooCommerce Multilingual & Multicurrency. It works for different currencies! On my test site, I have two currencies. USD and NIS. When adding products in each currency, the notice from the plugin will be in the current currency. Please see the attached screenshots.
Hello! Thank you for taking the test. That's nice.
The plugin also shows the correct currencies for me, but does not convert them.
I have PLN and EUR.
If I set e.g. PLN 100, the value in EUR is also 100 - it should be converted according to the conversion rate in WPML - i.e. approximately EUR 21.5.
I will escalate this issue to our second-tier supporters to see if they can come up with a solution for this. I'll keep you updated when I have news about this issue.
We would appreciate it if you could also report this problem to the authors of the Minimum Purchase Amount For Woo Cart – For WooCommerce plugin. Please also urge them to join our Go Global Program. You can find details about it here.
We will happily cooperate with the authors to make their plugin officially compatible with WPML.
You send them the following information.
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:
public function get_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;
}