Home › Forums › WoodMart support forum › Product attribute problems
Product attribute problems
- This topic has 12 replies, 2 voices, and was last updated 6 months, 3 weeks ago by Luke Nielsen.
-
AuthorPosts
-
June 16, 2024 at 2:19 pm #573026
shyshka_igorParticipantHello.
I have a problem with product attributes: on the product page, the attribute value is indicated with a space. For example: the actual value is 7,5 (A++), but on the product page it is displayed – 7 , 5 (A++).
Also, for some attributes I have applied code that creates a field for the link. If the field is filled in, the attribute value becomes clickable. Previously this code worked great, but now it doesn’t work. I changed the theme to standard and the attribute values became clickable. For example, on the page: https://tramontana.com.ua/ru/ch-s09ftxla2-ng-cooper-hunter/ there is an attribute: Marking, Маркировка, тыс. BTU, where 9 have to be a clickable attribute.- This topic was modified 7 months, 1 week ago by shyshka_igor.
- This topic was modified 7 months, 1 week ago by shyshka_igor.
June 16, 2024 at 3:03 pm #573030
shyshka_igorParticipantI install next patches:
568367
FIXED: Render product attributes. (Topic)(Topic)
562793
FIXED: Save product attributes with rare symbols. (Topic)
and problem with “space” in attributes is disappeared. But the problem with clickable attributes still persists.June 17, 2024 at 2:54 pm #573205
Luke NielsenKeymasterHello,
Could you please send me access to the admin panel so I can check the settings of the site?
Looking forward to collaborating with you!
Kind Regards
June 17, 2024 at 3:06 pm #573207
shyshka_igorParticipantOf cource, if you need, you can check
June 18, 2024 at 3:48 pm #573564
Luke NielsenKeymasterHello,
Enable the “Archives” for the attribute and then it will be clickable – https://gyazo.com/7d52418c75967f919fcff0c70b58eb20
Kind Regards
June 18, 2024 at 10:47 pm #573649
shyshka_igorParticipantI see that you misunderstood the essence of my problem. I’ll try to explain step by step.
For example: I have a attribute BRAND as you show in the screenshot. I also have a list of values for the brand attribute: Tenko, Cooper&Hunter and much more. If you go to the attribute: Cooper&Hunter value, and try to change it, you will see an additional field in which I have inserted a link that leads to the page I need. I enter this link manually, myself, and it definitely worked before the theme update, continues to work on the standard theme, but does not work on the Woodmart theme after the update. If i dont put any link in this field, attribute will not be clicable. At the same time, in the value of the Tenko attribute, this field is empty and such an attribute will not be clickable until I fill this field. It not depends on “enable archive”. All archive have to be disabled. Read more about how this is implemented here.
https://nicolamustone.blog/2016/03/11/make-product-attributes-linkable/
I used this method for SEO and internal linkbuilding, and it is very important for my website rankings.
Now I see that this stopped working after updating the theme, but it works with other themes. If you need, you can check it with old theme version (7.4.3). Therefore, I came to the conclusion that something has changed in the theme itself, after which the code does not work.June 19, 2024 at 5:57 pm #573934
Luke NielsenKeymasterHello,
Thank you for the clarifications.
We have fixed that on your website. In general, it will be fixed in our next update.
Thank you for your patience and time.
Kind Regards
June 19, 2024 at 7:44 pm #573944
shyshka_igorParticipantThank you for your attention to my problem. I want to clarify two questions:
1) Now I do not see any changes and that the problem has disappeared. This may be due to the fact that I had to restore a backup due to problems with the woocommerce update. But I did it around 12:00 noon today, and you reply me around 17:00.
2) I have two other sites with the same problem.
https://cooper-hunter.org.ua/
https://haier-aircon.org.ua/
If you could tell me how to fix this, perhaps I would do it before the update comes out, so as not to waste time.June 20, 2024 at 10:21 am #574047
Luke NielsenKeymasterHello,
For other sites, you need to apply the
568367
patch, as for the last site that you have sent access, at the moment I see that it works well – https://monosnap.com/file/vStVRyDfeAVCDz29bKfrdF1ooklguZKind Regards
June 20, 2024 at 11:27 am #574083
shyshka_igorParticipantPlease check my printscreen and try to understand what i mean. The link that you see in the standard theme is taken from the field in the attribute description – see the print screen “url”. And it does not work in woodmart, after updates.
Attachments:
You must be logged in to view attached files.June 20, 2024 at 5:51 pm #574244
Luke NielsenKeymasterHello,
After reviewing your issue once more, we have identified a conflict between some third-party functionality and our theme. In the previous update, we added the ability to include a description in the tooltip within the term, which has caused this conflict. Since the URL is part of the third-party functionality, unfortunately, we cannot resolve this in the theme. The best we can do to help is to disable this feature by adding the following code to the child theme:
remove_filter( 'woocommerce_attribute', 'woodmart_add_term_hint', 10, 3 );
Kind Regards
June 24, 2024 at 9:32 pm #575075
shyshka_igorParticipantI add this code to functions.php, but the problem is still present. Maybe i do something wrong?
June 26, 2024 at 10:05 am #575548
Luke NielsenKeymasterHello,
Sorry for the delay.
Please replace the above custom with the below one:
add_action('wp', function(){ remove_filter( 'woocommerce_attribute', 'woodmart_add_term_hint', 10, 3 ); });
Clear the cache and recheck the issue. Let me know the result.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register