Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing issues with the WooCommerce 'Add to Cart' button on your multilingual site. Specifically, the button is missing from the English version of the product archive page, and the button text is not translated into Swedish on the Swedish version.
Solution:
First, ensure that the option 'Show only products with custom prices in secondary currencies' is deactivated. This setting can interfere with the display of the 'Add to Cart' button on your product pages. You can find this option in the WPML settings under the Multi-Currency tab.

Next, verify that the string translations for the 'Add to Cart' button are correctly updated in WPML's String Translation interface. This will ensure that the button text is accurately translated into Swedish on the Swedish version of your site.

If these steps do not resolve your issue, or if the information provided here becomes outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us for further assistance.

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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Bruno Kos 1 year, 7 months ago.

Assisted by: Bruno Kos.

Author Posts
October 9, 2024 at 5:23 am

abu fawaz

Background of the issue:
I am trying to display the WooCommerce Add to Cart button correctly on both the English and Swedish versions of the product archive pages. The Add to Cart button should appear on the English version of the single product archive page, and the button text should be translated into Swedish on the Swedish version of the product archive page.

Symptoms:
The Add to Cart button is missing from the English version of the product archive page, even though it is included in the template. The Add to Cart button appears in English on the Swedish version, despite updating string translations for WooCommerce.

Questions:
Why is the Add to Cart button missing from the English product archive page?
Why is the Add to Cart button text not translated into Swedish on the Swedish product archive page?

October 9, 2024 at 7:30 am #16268264

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Can you check now?

"Show only products with custom prices in secondary currencies" was active on
hidden link

October 9, 2024 at 7:33 am #16268280

abu fawaz

Done that worked. What about the other issue. it still say "Add to cart" in the swedish!

Should Appear Here Whiteboard (1).png
October 9, 2024 at 7:56 am #16268355

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

For me it shows properly, regardless if I am logged it or not. We are talking about this URL?

hidden link

valj.jpg
October 9, 2024 at 7:58 am #16268372

abu fawaz

Yes but if you select a color. then the swedish button switches to an english string.

October 9, 2024 at 8:06 am #16268405

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Check now.

It was that first string here, from the "variation-swatches-woo" domain.
hidden link

October 9, 2024 at 8:13 am #16268415

abu fawaz

Done perfect! Thank you so much bruno you were perfect!