Home › Forums › WoodMart support forum › Show Single Attribute-missing color name in archive in some categories/product
Show Single Attribute-missing color name in archive in some categories/product
- This topic has 5 replies, 2 voices, and was last updated 2 years ago by
Artem Temos.
-
AuthorPosts
-
February 23, 2023 at 12:32 pm #445666
KerenelleParticipantHello dear aupport team.
I am in hope you can help explain and solve this issue I’m having in one of my projects.
I have been using your theme in my projects for several years now and it is absolutely great!
This is the first project where I’m using the “SHOW SINGLE ATTRIBUTE” settings, so that each variation will be shown as seperate product on the Shop and Archive pages.
(attached picture “1. My woodmart settings”)I see that it works well and it shows the COLOR NAME on the archive page for some categories (or ptoducts)
(see attached picture “2. Shows-Color-Names-In-Archive”But in other categories/products it doesn’t show the color name as it’s supposed to
(see attached picture “3. Doesn’t Shows Color Names In Archive”)I tried to understand why this is happening and where it comes from, but couldn’t indicate what influences this and thus couldn’t find a solution.
I wish to show the color name for every variation in the archive and shop pages for all the products (that have variations of course)
Have you ever encountered this kind of issue and can assist with a resolution?
Appreciate your support
Kind regards,
Kerenps.
this site is in Hebrew so I made the pictures to clear my issue.Attachments:
You must be logged in to view attached files.February 23, 2023 at 3:09 pm #445733
Artem TemosKeymasterHello,
To solve this issue, you need to specify each variation attribute and don’t use “Any [attribute name]” as shown on the screenshot https://monosnap.com/file/qnfTsmBS3IVn8ONjWk8jCy5VsEvs3u
Try to specify concrete terms there and test how it works.Kind Regards
February 23, 2023 at 5:50 pm #445797
KerenelleParticipantHello Artem
Thank you for the reply and trying to help.
Unfortunately it did not resolve the issue.Here are some points to consider:
1. The shirt which do show the color name in archive/shop (https://yoma.co.il/product/buttoned-superslim-fit-microlycra/) is set the same way as the Pants not showing color name (https://yoma.co.il/product/pants-elegan-superslim-fit-peter)
see picture “Shirt-same-but-shows-color-name-on-archive”2. I tried what you suggested, did not work
(see picture: “Trial-Not-Successful”)
the color name still missing in Archive/Shop page* Even if this did work – it is a terrible resolution for me, as there will be over 120 variations, and each needs 2-3 pictures.. so this would not have been helpful.
Other than that this is the same setting as the shirt that works.
(again see picture “Shirt-same-but-shows-color-name-on-archive”)Please can you check further?
I did try all that I could and even duplicated the shirt that does show color name , but it still did not show color name.I thought it might be the “size” attribute that ifluence.
because I have three SIZE attributes, 1-for shirts 2-for pants 3-for shoes
(see picture “Attribues-for-size”)
But they all have the same settings.. so I can’t figure it out..Thank you,
KerenAttachments:
You must be logged in to view attached files.February 23, 2023 at 6:52 pm #445820
Artem TemosKeymasterBy default, WooCommerce saves attribute terms in the name for variable products, but only if the attribute name consists of a single word. https://monosnap.com/file/HW7CN2c7YTntY02dLBfMmMxFn6KKuO
However, with custom code, we can bypass this restriction. Add it to the functions.php file in the child theme and resave some product to testadd_filter('woocommerce_product_variation_title_include_attributes', '__return_true');
February 23, 2023 at 7:04 pm #445821
KerenelleParticipantOMG! You are the best!
Thank you!
I changes the attribute terms to a single word and it worked.
I am so thankful!
Kind regards’
KerenFebruary 24, 2023 at 10:00 am #445932
Artem TemosKeymasterGreat, we are glad to help you. Let us know if you still have any questions on this topic.
Kind Regards
-
AuthorPosts
Tagged: Show Single Attribute
The topic ‘Show Single Attribute-missing color name in archive in some categories/product’ is closed to new replies.
- You must be logged in to create new topics. Login / Register