Home › Forums › WoodMart support forum › Attribute images for some product is not showing
Attribute images for some product is not showing
- This topic has 39 replies, 3 voices, and was last updated 5 years, 1 month ago by Artem Temos.
-
AuthorPosts
-
September 24, 2019 at 12:06 pm #146300
arj1373ParticipantHi,
We would like to show the images from variation photos. We have done all set up correctly and usually, it is working correctly. But:
– For some products is not showing the attribute images/swatch. Please see the attached screenshot.
– For some products, it is working just in one language. please see the attached screenshots to see how the same product in german language is absolutely ok and just after switching to the English language, the attribute images/swatch will be gone. (Even in this case also in the quick view everything is ok).May you please help us to solve this issue and know why are we facing this conflict?
Attachments:
You must be logged in to view attached files.September 24, 2019 at 12:09 pm #146304
arj1373ParticipantMore screenshots:
https://nimb.ws/NK3Mox
https://nimb.ws/aU0g9rSeptember 24, 2019 at 1:54 pm #146351
Aizaz Imtiaz AwanKeymasterHello,
To fix this please go to WooCommerce -> WooCommerce Multilingual. Click on the attributes tab and select one attribute. Down the bottom of the page click “Synchronize attributes and update product variations”. Do this for each attribute.
Then clear your site and browser cache. After doing this if the issue is still there. Uninstall the plugins third party plugins other then WPML and then check back your site. This will surely fix the issue.
Best Regards.
September 25, 2019 at 10:48 am #146509
arj1373ParticipantDear Sir/Madam,
I have done your advice. Unfortunately, then after, all translated attributes have disappeared. We have translated once again all attributes. But the problem is here still.
We have provided some new variable products. They have also the same problem.
For some variable product: swatch shows in shop page but there is no variation in product page. For some others is reverse (Not didn’t show in the shop page but appears in the product page). In the meanwhile, sometimes for a variable product, the results in the two languages are totally different.
May I ask you please consider this issue in our admin page and make correction as you want? If so, it would be greatly appreciated.
I am looking forward to your assistance as soon as possible.
With many thanks in advance.September 25, 2019 at 10:56 am #146515
arj1373ParticipantPlease pay attention that we have this issue just with an attribute-color.
September 25, 2019 at 11:58 am #146534
Artem TemosKeymasterCould you please send us a link to a concrete product with this problem?
September 25, 2019 at 1:16 pm #146559
arj1373ParticipantExample 1:
– in Germany shop page attribute swatch shows correctly, but in the product page, all variation is disappeared.
– in English shop page don’t show the swatch attribute- also in the product page all variation is disappeared
https://brainbowtoys.de/shop/entwicklungsschwerpunkt/soziale-und-emotionale-entwicklung/selbstbewusstsein-ausdruck/gluecksbringer-baer-40-cm-versch-farben/
https://brainbowtoys.de/en/shop/skill/physical-development/fine-motor-skills/gluecksbringer-baer-40-cm-versch-farben/Example 2:
– in Germany and English product pages, the variation shows correctly.
– in English shop page, don’t show the swatch attribute. in Germany shop page is ok.
https://brainbowtoys.de/shop/entwicklungsschwerpunkt/soziale-und-emotionale-entwicklung/fantasie-und-kreativitaet-2/miffy-kord-plueschfigur-24-cm/
https://brainbowtoys.de/en/shop/skill/social-and-emotional-development/imagination-and-creativity/miffy-kord-plush-24-cm/September 25, 2019 at 1:21 pm #146561
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to fix this
add_filter( 'woodmart_swatches_on_grid_right_order', '__return_false' );
Regards
September 25, 2019 at 1:35 pm #146565
arj1373ParticipantMany thanks for your fast reply.
We don’t use a child theme. (https://nimb.ws/IUTw4b)
So, Should we add this code?September 25, 2019 at 1:58 pm #146574
Artem TemosKeymasterIn this case, you need to install the child theme and then put the code to the functions.php file.
September 25, 2019 at 2:00 pm #146576
arj1373ParticipantI have added it (https://nimb.ws/2a5iqz). Then, I have deleted browser cash. But the problem is still here as same as already.
I sent you the access information to our server in the private message.September 25, 2019 at 2:04 pm #146579
arj1373ParticipantYou are talking very easy about installing the child theme. But honestly, I have too much stress. How? After installing what will happen for our existing products, pages, blogs, ….?
September 25, 2019 at 2:23 pm #146585
Artem TemosKeymasterOK, please, keep the code in the parent theme so we can check.
September 25, 2019 at 2:30 pm #146591
arj1373ParticipantWhilst many thanks for your kind reply, I have put it already. Please see ((https://nimb.ws/2a5iqz). I sent also already server access information. (There is some other domain there, obviously, we are talking about brainbowtoys.de)
Many thanks in advance for your kindly cooperation.September 25, 2019 at 2:33 pm #146593
Artem TemosKeymasterWe are checking your second example and it seems to work fine now.
September 25, 2019 at 2:42 pm #146595
arj1373ParticipantSorry, but it is not OK.
As I explained to you by the second example, the swatch attribute in English shop page not shown:
https://brainbowtoys.de/en/marke/miffy/
But in the Germany shop page is shown correctly:
https://brainbowtoys.de/marke/miffy-de/September 25, 2019 at 3:02 pm #146601
arj1373ParticipantSo, now our webshop is down and not available. May you please assure me that it is temporary because it is under consideration by you. Just for my comfort, please.
September 25, 2019 at 6:44 pm #146597
Artem TemosKeymasterPlease, install the child theme and send us your FTP. The problem may occur when you switch between themes in Appearance -> Themes is that widgets may lose their positions. It is a WordPress behavior and we are not able to fix this in our theme scope. Now, you need to go to Appearance -> Widgets and move all widgets to appropriate positions.
As a workaround, you can backup your widgets configurations using this plugin https://wordpress.org/plugins/widget-importer-exporter/Regards
September 25, 2019 at 7:12 pm #146632
arj1373ParticipantBefore of all, I have to access to my shop. As I said already the shop is down and no available. Please try http://www.brainbowtoys.de. I think you respond to me without considering my reply.
I have sent already the access information to our server two times. I said in the last reply that site is down. After adding the code in functional.php. I have deleted it but it not working still. I don’t know what can I do. I want to cry.September 25, 2019 at 10:17 pm #146663
arj1373ParticipantBy considering the files via server/file manager, everything seems ok and correct. But the site is not coming up. I could not find and fix this issue. Please help me to run the shop again very soon. Please…
September 26, 2019 at 6:17 am #146701
Artem TemosKeymasterPlease, ask your hosting provider to send you FTP access since you sent only your hosting control panel access. It is not enough to edit your website files in a proper and safe way.
As for the website, we don’t know why it doesn’t work since we didn’t touch anything. We checked your logs and see some fatal errors https://gyazo.com/b5be2e291ea466f58756a4d2edad6e23
You need to contact your hosting provider to investigate the issue too.September 26, 2019 at 10:52 am #146782
arj1373ParticipantAfter receiving your kind advice, With great cooperation with our server provider, now the shop is available again.
Regarding the FTP access, there is a misunderstanding. Because of our webshop installed on a dedicated server (no hosting or cloud). It means by user name and password that I have sent you already, you have access to the server as same as me (Server Owner). Please see https://nimb.ws/Q4HrbT
So, please let me know whether is it sufficient to your consideration or you require also further information like FTP.September 26, 2019 at 1:49 pm #146844
Artem TemosKeymasterThe problem is that this option is not translated and on En version it takes attribute from DE. You need to edit the file
wpml-config.xml
first and add the line as shown on the screenshot http://prntscr.com/pbaxwk<key name="grid_swatches_attribute" />
Then you need to go to WPML -> String Translations and find this option. Translate that attribute slug for EN version and it should work.
September 26, 2019 at 1:50 pm #146845
Artem TemosKeymasterThen try to resave both products to see if it works.
September 26, 2019 at 2:42 pm #146857
arj1373ParticipantHi, Whilst many thanks for your kind advice.
– I have added the codes successfully. (https://nimb.ws/YZyKTP)
– I found it in the WPML string, but it is possible just to translate it from ENG to Germany. (https://nimb.ws/n4yMcX). Actually I don’t know how can I translate the English string.
– However, I have translated already the attribute via Woocommerce Multilanguage. (https://nimb.ws/W8H1VK).So, May you please help me to make this translation.
In English: pa_color
In Germany: pa_farbeSeptember 26, 2019 at 2:49 pm #146860
Artem TemosKeymasterHere you need to set
pa_color
for english version https://s.nimbusweb.me/image/3360968/mt50mp6bmfyfuw2flebw/Fmu0EYIYOHsrls6R/t8qbRQrG17unM3xU/screenshot-brainbowtoys.de-2019.09.26-16_31_35.pngSeptember 26, 2019 at 7:00 pm #146884
arj1373ParticipantDear Temos, Sorry maybe it is very easy but I can not find how can I change the English string to pa_color. Here, I can edit only Germany String. Please see https://nimb.ws/bUEjVR
May you please do it (I have sent already admin access information). Anyway if not, it would be greatly appreciated to let me know how can I make it?September 26, 2019 at 9:37 pm #146917
arj1373ParticipantI have to inform you that now swatch attribute in shop page for both languages are correct.
The only reminded problem is, variation product is not showing in Germany single product page. Please see https://nimb.ws/zsvYXu.September 27, 2019 at 6:29 am #146953
Artem TemosKeymasterWe have translated the attribute for you, please, check the shop page.
As for the product where swatches are not shown, it is something wrong with it. It is not translated correctly. Check product from the second example that works fine and do the similar translation.September 27, 2019 at 6:51 am #146956
arj1373ParticipantIt is not working. Please see https://s.nimbusweb.me/share/3362404/8ncqfp84wdukqymnwk3a
You have changed Germany translation which I could do it very easy as I explained in previous messages/screenshots. I thought you are meaning as below:
String English to be translated to pa_color
String Germany to bo translated to pa_farbe
But now those are translated so:
String English: pa_farbe
String Germany: pa_color
I think something here is going wrong. -
AuthorPosts
Tagged: attribute image, Attribute Swatch
- You must be logged in to create new topics. Login / Register