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.

This topic contains 6 replies, has 1 voice.

Last updated by ziga pipan 2 days, 5 hours ago.

Assisted by: Marcel.

Author Posts
November 21, 2024 at 10:02 am #16428248

ziga pipan

Background of the issue:
I want to translate bank account details in WooCommerce to Croatian language using WPML. I can do that just fine in string translation.
hidden link

Symptoms:
Problem is I only have one bank account in Croatia. How do I disable the second one?

Questions:
How do I disable the second bank account in WooCommerce?

November 21, 2024 at 12:11 pm #16428838

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

That is not possible, you can either translate this to some other value for 2nd language, or you can set a different payment gateway/bank account per currency:

- https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#choosing-which-payment-gateways-to-display-based-on-customer-location

Maybe something similar is possible with custom code in Wocommerce and hiding another bank account if the client's billing address is Croatia / Slovenia.

Regards,
Drazen

November 21, 2024 at 12:21 pm #16428874

ziga pipan

I'm not sure you understood me. I'm not trying to have multi currency.

I have 2 bank accounts for slovenian customers
SI BANK 1
SI BANK 2

I have 1 bank account for customers
HR BANK 3

I translated strings from SI BANK 1 to HR BANK 3. But how do I disable a second bank? I don't want it to appear in croatian customers emails
hidden link

Do I just translate it and use empty spaces?

November 21, 2024 at 5:25 pm #16430489

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

Please note that WooCommerce Multilingual is designed to translate content on a 1:1 basis. If the bank accounts need to differ based on the language, there are several potential solutions:

1)Implement custom code to handle this functionality yourself.

2) Translate all content, but use placeholders (e.g., empty spaces) for the fields that should remain empty.

3) Use CSS to hide specific sections for a particular language. However, it’s likely that WooCommerce uses the same class names for both sets of bank details, which may require additional customization to target them properly.
Let me know if you'd like assistance exploring any of these options further!

Let me know if you need further clarification or assistance with any of these approaches!

Best regards,
Marcel

November 21, 2024 at 8:20 pm #16431047

ziga pipan

If empty spaces do the trick that's ok for me.
I remember I had some king of a problem a while ago, because one of my string translations had en empty space at the end.

November 22, 2024 at 8:05 am #16432069

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

You can try using a regular space or an ASCII whitespace character instead. There are several ASCII hidden link">whitespace symbols that are "invisible".

Best regards,
Marcel

November 22, 2024 at 11:25 am #16433547

ziga pipan

thank you

November 22, 2024 at 11:26 am #16433549

ziga pipan

thank you