Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 14 replies, has 0 voices.

Last updated by Shekhar Bhandari 1 month ago.

Assisted by: Shekhar Bhandari.

Author Posts
May 9, 2025 at 2:03 pm #17017028

gaborN-2

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.

May 13, 2025 at 2:55 am #17024912

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

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.

Let me know what you find out!

Thanks

May 13, 2025 at 12:45 pm #17027626

gaborN-2

Hi,

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.

Ben

May 14, 2025 at 2:39 am #17030013

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

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

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

May 19, 2025 at 6:58 am #17046519

gaborN-2

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

May 19, 2025 at 8:47 am #17047260

gaborN-2

Sorry, please try now.

May 19, 2025 at 9:28 am #17047399

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I can see the payment method available on checkout pages, hidden link

Am i missing something?

Look forward to your reply.

Thanks

Pénztár-Blue-Velvet-Online-Shop-05-19-2025_03_11_PM.jpg
May 19, 2025 at 9:34 am #17047453

gaborN-2

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.

May 19, 2025 at 9:48 am #17047496

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

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.

Thanks

May 19, 2025 at 9:51 am #17047501

gaborN-2

Hi,
Thank you for the example.
How can I set up the Simplepay gateway for the English pages? Why doesn't the gateway show up at the linked settings?

May 19, 2025 at 10:01 am #17047533

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

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.

Thanks

May 19, 2025 at 10:13 am #17047646

gaborN-2

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.

May 19, 2025 at 10:15 am #17047652

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Can you send me a screenshot where it shows that error, from my end I see 1 HUF = 0.0025 EUR is set properly on hidden link

May 19, 2025 at 10:59 am #17047901

gaborN-2

Yes, it seems to be set. If you hover on the input, it says the "error" message.
hidden link

Since it says that, I'd suspect, that something would go wrong somewhere, if I set it outside of the boundaries...

May 20, 2025 at 4:41 am #17050790

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I would suggest you to check the front-end once and see if it's all working. Can you please confirm this?

Look forward to your reply.

Thanks

The topic ‘[Closed] I need to be able to use a Hungarian payment method on the secondary language’s currency.’ is closed to new replies.