Skip Navigation

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

Problem:
The client was experiencing an issue where hovering over a product image on the English version of their site did not change the image, while it worked fine on the Danish version.

Solution:
We recommended the client to ensure that the secondary images used for the hover effect are properly synchronized between the default language (Danish) and the translation (English).

1. Make a small edit to the product in the default language and update it.
2. Then, update the translation so that the gallery images carry over.

For the production site, we advised the following steps:
1. Go to WPML->Settings->Custom Fields Translation and ensure that the "Multilingual Content Setup" meta box is visible on the post edit screen.
2. Edit any product in the default language, scroll to the bottom, show system fields, and set the following to copy:

_product_image_gallery

has_variation_gallery

3. Make a small edit and click "update" to ensure that the gallery images are synchronized.

We also addressed a performance issue by recommending an increase in the WordPress memory limit. The client was advised to add the following code to their wp-config.php file:

define( 'WP_MEMORY_LIMIT', '256M' );

define( 'WP_MAX_MEMORY_LIMIT', '512M' );

If the solution provided here is not relevant due to being outdated or not applicable to your case, we highly 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 issue persists, please open a new support ticket at our support forum.

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 4 replies, has 2 voices.

Last updated by Bobby 6 months, 4 weeks ago.

Assisted by: Bobby.

Author Posts
April 16, 2024 at 12:32 pm

Ole Kroer

When hovering a product image in a second language, the image doesn't change. Example:

here is the danish page where all is fine hidden link and here is the same english page hidden link where there is no hover 2 pictures on product 1 and 2 but still on 3

April 16, 2024 at 1:06 pm
April 16, 2024 at 10:28 pm #15528356

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

While waiting for one of my colleagues to help you, please help us understand how that functionality is added.

Does it pull the on-hover image from your secondary images? If that is the case please review the following:

Default language product (Danish) --> It has the featured product image along with Merchandise Gallery images.

hidden link

Translation (English ) --> Featured product image but missing Merchandise Gallery Images.

hidden link

Please make a small edit to your product in the default language and update it, then update the translation and the gallery should carry over.

Let me know your results.

Update: I did this for WZ.03 plank table and it seems to work OK now. Try WZ.02 plankebord

Screen Shot 2024-04-16 at 3.19.54 PM.png
Screen Shot 2024-04-16 at 3.18.46 PM.png
April 17, 2024 at 8:04 am #15530004

Ole Kroer

Hi Bobby
I have tried and now the product gallery is updated on the staging site, so that's fine. But I have also tried the same on the production site woodzone.dk and here the product gallery is not updated. Can you help doing the same on the production site
regards
Ole

April 17, 2024 at 9:20 am #15530499
Ole Kroer

Hi Bobby, we have also had some performance issues on site woodzone.dk and have tried today looking for the problem and found if we deactivate wpml woocommerce multilingual/multicurrency the site run perfect again with good performance, but we need woocommerce multilingual/multicurrency, do you have a solution

New threads created by Bobby and linked to this one are listed below:

https://wpml.org/forums/topic/split-product-hover-image-not-working-in-second-language/

April 17, 2024 at 6:47 pm #15534561

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

For the production site ensure the following are activated:

1. Go to WPML->Settings->Custom Fields Translation -> Show "Multilingual Content Setup" meta box on post edit screen.

2. Edit any product in the default language (ideally a table type)-> scroll to the bottom -> show system fields and set the following to copy and click "Apply"

_product_image_gallery

has_variation_gallery

3. make a small edit and click "update"

This should ensure that the gallery is moved over and works OK.

Let me know your results, please.

Regarding the performance issue, we try to keep each ticket to a minimum of one issue.

Please refer to the link above for the new split ticket.

April 18, 2024 at 10:35 am #15537525

Ole Kroer

Hi Bobby
Your suggest solved the issue
regards
Ole