spc Posted May 25, 2021 Share Posted May 25, 2021 Hello Im trying to hide some of the attributes that i dont whant to show on the page. But dont now how to change, i now in 1.6 but not in the new 1.7. Hope someone can help me. Link to comment Share on other sites More sharing options...
ZHSoft Posted May 26, 2021 Share Posted May 26, 2021 Edit the product and delete the attributes you don’t need in the attribute combination. Or you can write JS code to control the hiding of certain attributes. Link to comment Share on other sites More sharing options...
spc Posted May 26, 2021 Author Share Posted May 26, 2021 Hello I dont whant to delete it, i have them in the Combinations Tab module. I only whant to hide them. Link to comment Share on other sites More sharing options...
ZHSoft Posted May 26, 2021 Share Posted May 26, 2021 Oh, you need to ask a front-end engineer to write a JS or CSS, hiding the DOM can solve your problem. Link to comment Share on other sites More sharing options...
spc Posted May 26, 2021 Author Share Posted May 26, 2021 Hello i manage to fix it my self. I add this code : {if $group.attributes|@count && $id_attribute_group != 4} in my /Theme/templates/catalog/_partials/product-variants.tpl right under {foreach from=$groups key=id_attribute_group item=group} And it works... 1 Link to comment Share on other sites More sharing options...
ZHSoft Posted May 26, 2021 Share Posted May 26, 2021 2 hours ago, spc said: Hello i manage to fix it my self. I add this code : {if $group.attributes|@count && $id_attribute_group != 4} in my /Theme/templates/catalog/_partials/product-variants.tpl right under {foreach from=$groups key=id_attribute_group item=group} And it works... Good Job! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now