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
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 3 replies, has 0 voices.

Last updated by Christopher Amirian 3 weeks ago.

Assisted by: Christopher Amirian.

Author Posts
April 17, 2025 at 9:55 pm #16945914

fabioP-21

Background of the issue:
I am developing a bilingual WooCommerce website for a client. The website is English and French. We are using product tables to display products. Each product has an Add to Cart button. However, when I switch from English to French, the Add to Cart button does not translate. It should say "Ajouter au panier". Link to a page where the issue can be seen: hidden link

Symptoms:
The Add to cart button doesn't translate and remains at Add to cart.

Questions:
Why does the Add to Cart button not translate when switching languages?
How can I ensure the Add to Cart button translates to 'Ajouter au panier' in French?

April 19, 2025 at 1:15 pm #16948945

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Welcome to WPML support. I wonder how you added the Add to cart button? Is it a custom code added or something that is part of the plugin or theme?

By identifying that you will be able to go to WPML > Theme and plugins localization, find the source, and scan the source there.

After that, you can go to WPML > String Translation and search for the add to cart text and if you find it you can do the translation.

If you could not find any instances, follow the steps below to find a possible hidden one:

https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Thanks.

April 22, 2025 at 2:30 pm #16955721

fabioP-21

I am using product tables for a plugin called Barn2. For some reason, the add to cart button doesn't translate to French. I search in String Translation for the button and I also added custom code with Code Snippets. Nothing works.

April 23, 2025 at 3:50 pm #16961234

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you. That might be compatibility issue between Bar2 plugin and WPML. I can take a look for initial troubleshooting:

I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Thanks.

The topic ‘[Closed] WooCommerce Add to Cart’ is closed to new replies.