Background of the issue:
I am trying to use a Hungarian payment method for the secondary language's currency on my site hidden link . I added a new currency for the secondary language using WPML.
Symptoms:
The payment method I use for the default currency is not available for the secondary language.
Questions:
How can I enable the Hungarian payment method for the secondary language's currency? In the methods settings, it is set to be available for all languages.
Thanks for reaching out to WPML support! I’m happy to help you out with this.
You mentioned using a Hungarian payment method. Is that done with some custom plugins?
Sometimes, payment methods only support certain currencies. Can you check the Hungarian currency option and see if it works? If it doesn’t, maybe you should check if the plugin supports other currencies.
The payment gateway is provided by a Hungarian company (hidden link), and they say that their plugin is used on many WP+WPML sites with no problem. It supports both HUF and EUR currencies by default.
To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.
So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply. hidden link
Hi,
I just checked, and I have a problem with the automatic currency settings. The default currency on the site is HUF, and I want to set up EUR. 1 HUF = 0,0025 EUR, which is a problem, because in the currency settings, for the exchange rate it says that the value must be greater then or equal to 0,01... Please advise on this issue as well.
Ben
Well, I didn't check the checkout page before now, as I couldn't set it up... Please check the settings page here: /wp-admin/admin.php?page=wpml-wcml&tab=multi-currency
We don't want to offer COD on the English pages, so I want to be able to set the payment gateways by languages.
Currently, cash on delivery is not supported for various payment methods. Therefore, I recommend using custom codes to disable cash on delivery for English language users.
You can take a look at this example: hidden link
add_filter( 'woocommerce_available_payment_gateways', 'custom_disable_cod_for_language', 99 );
function custom_disable_cod_for_language( $available_gateways ) {
// Get current WPML language
$current_language = apply_filters( 'wpml_current_language', NULL );
// Languages where COD should be disabled
$disabled_cod_languages = array( 'en', 'fr' ); // change to your language codes
if ( in_array( $current_language, $disabled_cod_languages ) ) {
if ( isset( $available_gateways['cod'] ) ) {
unset( $available_gateways['cod'] );
}
}
return $available_gateways;
}
I would like to inform you that this is a custom code, and we will be unable to provide further assistance.
It's not possible to set the Simplepay gateway for only one languages/currencies, you can either enable it for both languages/currencies or disable it.
From what I see it's enabled for the English languages at the moment.
As I wrote before:
The default currency on the site is HUF, and I want to set up EUR. 1 HUF = 0,0025 EUR, which is a problem, because in the currency settings, for the exchange rate it says that the value must be greater then or equal to 0,01... Please advise on this issue as well.