Home › Forums › WoodMart support forum › Issue with color swatch
Issue with color swatch
- This topic has 17 replies, 3 voices, and was last updated 4 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
June 4, 2020 at 11:14 am #200595
prokreegerParticipantHi there!
I have some issue with visibility of color swatch on categories and such widgets like featured products. On product page color swatch looks perfect (image 1), but on categories and some widgets color swatch didn’t appears at all or displays only one color (image 2, 3).
Also I have attached my color attribute settings (image 4).
Attachments:
You must be logged in to view attached files.June 4, 2020 at 1:02 pm #200677
Aizaz Imtiaz AwanKeymasterHello,
First of all thanks for choosing our Theme, we are glad to be you in the WoodMart WordPress family
:-)
.I saw the screenshots you attached. Please make sure that you have enabled the option for all the attribute items from Products >> Attributes.
Screenshot for Clarification: https://ibb.co/7VGjbMJ
Best Regards.
June 4, 2020 at 4:44 pm #200779
prokreegerParticipantI’ve enabled the option that you said, but nothing changes. What’s next?
June 5, 2020 at 10:22 am #200970
Aizaz Imtiaz AwanKeymasterHello,
Please deactivate all the third party plugins, activate parent theme. Then check back.
If the problem continues then provide admin panel login details to check it myself and help
you out accordingly.Best Regards.
June 6, 2020 at 4:53 pm #201395
prokreegerParticipantThis issue caused by WooCommerce Multilingual plugin by WPML. When I turned off this plugin everything started working fine. Can you help me in this case?
June 8, 2020 at 9:01 am #201653
Aizaz Imtiaz AwanKeymasterHello,
Please make sure that you have translated all the attributes and items in all the languages then clear cache and check back.
Because when you haven’t translated the attributes in all languages they do not show.
Best Regards.
June 8, 2020 at 9:31 am #201660
prokreegerParticipantHello,
I’ve translated color attribute to all languages, but problem is still there.
Attachments:
You must be logged in to view attached files.June 8, 2020 at 12:29 pm #201720
Aizaz Imtiaz AwanKeymasterHello,
I saw the screenshots you attached. Please make sure that you have translated all the attribute items as well in all the languages not only the attribute names.
You can read the following article for further help:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/Best Regards.
June 11, 2020 at 6:57 pm #202762
prokreegerParticipantHello,
I have make a demo site and installed only Woodmart theme (with demo data) and WPML plugin.
Also I have translated all attributes, but issue didn’t disappeared.
Attachments:
You must be logged in to view attached files.June 12, 2020 at 6:53 am #202858
Aizaz Imtiaz AwanKeymasterHello,
I saw the screenshot you attached and visited your website. To display swatches on the product grids you need to Go to Theme Settings >> Shop >> Attribute Swatches. Set the attribute from there.
Screenshot for Clarification: https://ibb.co/FWZzKhy
Best Regards.
June 12, 2020 at 9:03 am #202907
prokreegerParticipantAll settings are set correctly.
Attachments:
You must be logged in to view attached files.June 12, 2020 at 11:15 am #202949
Aizaz Imtiaz AwanKeymasterHello,
Please provide admin panel login details of the website to check it myself and help you out accordingly.
Best Regards.
June 15, 2020 at 9:13 am #203528
prokreegerParticipantSite admin credentials
June 15, 2020 at 12:37 pm #203604
Aizaz Imtiaz AwanKeymasterHello,
You have not translated the Products >> Attributes >> Brand and color into both languages that is why it is not showing http://prnt.sc/t02t13
These attributes only showing in the Russain Language not in English language when you add the attributes in the Product. See here: http://prnt.sc/t02upz These should available in the English language as well.
Best Regards.
June 15, 2020 at 7:46 pm #203693
prokreegerParticipantHello,
I’ve made translations of attributes and cheked them on product page and all translations works fine. But on category and home page colors didn’t appeared.
Attachments:
You must be logged in to view attached files.June 16, 2020 at 7:19 am #203828
Artem TemosKeymasterHello,
Try 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
June 16, 2020 at 7:56 am #203846
prokreegerParticipantHello,
When I have added this PHP code snippet all starts working great.
I am very appreciated for your work. Thanks a lot for a cool support.
June 16, 2020 at 9:15 am #203871
Artem TemosKeymasterGreat, you are welcome! Feel free to contact us if you will have any questions.
-
AuthorPosts
Tagged: Attributes, color swatch, colors
The topic ‘Issue with color swatch’ is closed to new replies.
- You must be logged in to create new topics. Login / Register