Home›Support›English Support›[Resolved] Split: featured and attribute images not showing on the translated product
[Resolved] Split: featured and attribute images not showing on the translated product
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported that the featured image and attribute images were not displaying on the translated version of a WooCommerce product, although they appeared correctly in the original version.
Solution: We identified two separate issues causing the image display problems:
1) For the product images: - Open the product for editing in the default language. - Switch to Croatian from the top admin bar to load the translation within the WordPress editor. - Add or update the product images (featured and gallery) and then update.
2) For the variation images:
- First, we adjusted a setting in WPML -> Settings -> Custom Term Meta Translation for the field "st-image-swatch" from 'don't translate' to 'Copy'.
- Navigate to Products -> Attributes in the default language. - Click "Configure terms" for the attribute "Barva". - After loading the terms, switch to Croatian from the top admin bar. - Click "Quick edit" for a term missing the image. - Simply click "Update Barva" without making any changes to the term. Repeat the last two steps for each term needing this fix.
If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 needed, please open a new support ticket at WPML support forum 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.
I have my Woocommerce products translated and all is ok, but on this one product featured image and attribute images not showing on the translated product.
Original version is working ok hidden link
Croatian version is missing the images hidden link
Reference to the other ticket, I've moved the images issue on that product in this ticket and 'll be handling it here.
I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.
Your next answer will be private, to share this information safely.
Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.
IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.
I've tried observing the issue and have also tried by deleting the translation of the product and then creating again, but this didn't work.
Since this is a live site, I can't do much in there. I'll recommend preparing a test or staging site by copying this site, so we can investigate further. I'll need to deactivate other plugins, switch themes and try some troubleshooting. This can cause harm to the live site otherwise.
I've enabled your next reply as private again to share the access to the staging/test site.
P.S.: I'll be off over the weekend and 'll be able to attend on Monday.
I was able to find and fix the problem, apparently there were 2 different issues, let me explain below.
1) Product images
I checked with a new test product and this seems to work fine. Probably there has been a hiccup previously for your product which didn't copy the images properly. Or perhaps the relevant checkboxes in "Media attachments" section in Language metabox weren't checked. Because with my test product I checked these and these copy images fine to translation and stay checked always (see images.jpg attached).
So for now, you can fix your product by following these steps:
- Open the product for editing in default language.
- Switch to Croatian from top admin bar. This 'll load the translation within WordPress editor, instead of the translation editor.
- Add/update the product images (featured and gallery) and update.
2) Variation images
A relevant field "st-image-swatch" in WPML -> Settings -> Custom Term Meta Translation was set to don't translate, while it needs to set to "Copy". I've set this field to copy now (see field.jpg) and after that updated a few terms and their images are appearing on the frontend now (hidden link).
Please follow these steps to fix rest of the variation images:
- Go to Products -> Attributes in default language.
- Click "Configure terms" for "Barva" (see 1.jpg).
- After loading the terms, switch to Croatian from top admin bar (see 2.jpg).
- And click "Quick edit" for a term missing the image (see 2.jpg).
- Simply click "Update Barva" without making any change to the term (see 3.jpg).
Repeat these last 2 steps for each term needing this fix.
P.S.: I've removed the test product after checking , have switched back to your theme and have also activated the plugins.