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: Africa/Cairo (GMT+02:00)
Tagged: Compatibility
This topic contains 8 replies, has 3 voices.
Last updated by Osama Mersal 1 year, 6 months ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
May 4, 2023 at 1:58 pm #13587077 | |
cristianS-23 |
I am running the latest Shoptimizer Theme on my website: hidden link and when I translate the product: hidden link, the variation swatches and variational gallery are not being translated (copied) You can see in the English version that the gallery contents change based on which colour you choose, that colour being White or Black for example. On the translated page there are 2 issues: I have checked Attributes, and have enabled Translation/Copying for them from WPML settings (Hence their names being translated) |
May 5, 2023 at 4:57 pm #13595875 | |
Ahmed Mohammed Supporter Timezone: Africa/Cairo (GMT+02:00) |
Hi there, Thank you for contacting WPML support! It looks like there's an issue with the hosting provider, as I'm getting the error shown in the attached screenshot. With that said, I could not find the theme on WPML's compatibility list (https://wpml.org/theme/). I have created the following sandbox website: hidden link - please install the theme and replicate the issue so that we can check what is going on. Looking forward to hearing back from you. |
May 5, 2023 at 5:09 pm #13596135 | |
cristianS-23 |
Hello, I have installed the theme and made a product at: hidden link Here you can seethe Attribute Swatches and Gallery based on Attributes (Depending on the attribute, different images are shown in the gallery) I hope this is what you have asked for, since I did not want to configure WPML (in case you wanted to check a specific setting as you configure it) Thank you for your help and looking forward to hearing back from you |
May 7, 2023 at 8:02 am #13599937 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, I'm Osama from WPML forums support. I'll be glad to help you today. 1) Thanks for uploading your theme. Please configure WPML the same way it's configured on your site. After that, please translate the product to replicate the issue. If the issue is replicable, please let me know how to reproduce it. 2) It's unrelated to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/) You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line: /* Memory Limit */ define('WP_MEMORY_LIMIT', '256M'); define( 'WP_MAX_MEMORY_LIMIT', '256M'); Best regards, |
May 9, 2023 at 9:56 am #13612171 | |
cristianS-23 |
Hello, I have also setup WPML and translated the product: hidden link You can see that it does not have the same gallery/product swatches. To replicate: Translate the same product in German, and you will have the same result. |
May 9, 2023 at 10:29 am #13612453 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for replicating the issue. I noticed the issue could be reproduced without your theme, so I deactivated it. Also, I noticed that the images appear on the shop page. (hidden link) Currently, I'm consulting our compatibility team regarding this issue and will update you as soon as I get their reply. Best regards, |
May 10, 2023 at 12:02 pm #13622209 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for your patience. As a quick workaround, please go to WPML-> Settings-> Custom Fields Translation sections, search for the "commercekit_attribute_swatches" field, and set this field to translatable. After that, please update the product in the default language, then switch the language to the translated product and add the missing images manually. So far, our compatibility team is trying to find another workaround to copy the image automatically. This issue might need collaboration with the plugin author, so please get in touch with the CommerceKit support team and consult them regarding the issue. Best regards, |
May 15, 2023 at 2:44 pm #13649077 | |
cristianS-23 |
Hello Osama, Thank you for your reply. I can confirm this works. The next issue is that let's say we assign images, then we upload a pricing product update .csv, it instantly triggers WPML to have a "pending translation update" for a specific product. Once we do that, the product's variations go missing. (I have attached a screenshot for you) Another issue is that after we manually assign the swatches, and we save the product page, it does not always "register", and does not actually save the changes we made. We have WP Rocket enabled, but cache is disabled for Admin and we have also tried with the "?nowprocket" tag appended to the URL to render a page without caching for testing purposes. None seem to help. Happy to provide login to the production website if you could have a look? |
May 15, 2023 at 2:56 pm #13649223 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, 1) our 2nd tier support has found another workaround for the swatches issue. Please check the following steps: 1- Edit the (wp-content/plugins/commercegurus-commercekit/includes/module-attribute-swatches.php) file $swatch_html = commercekit_as_get_swatch_html( $swatch_type, $attribute_swatches[ $attribute_id ][ $item->term_id ], $item ); With $wpml_default_lang = apply_filters('wpml_default_language', NULL); $swatch_html = commercekit_as_get_swatch_html($swatch_type, $attribute_swatches[$attribute_id][apply_filters('wpml_object_id', $item->term_id, 'category', FALSE, $wpml_default_lang)], $item); I've applied this workaround on the sandbox site. Please check and let me know if it works correctly. 2) we try to keep one issue per ticket in our forum. Thanks for your understanding Best regards, |
The topic ‘[Closed] Shoptimizer Variation Swatches and Gallery’ is closed to new replies.