netgui Posted February 1, 2024 Share Posted February 1, 2024 (edited) Hi there, On my shop categories pages, i have plenty of this kind of hidden links in my code : it sends to a product variation of my products and i don't want to. <div class="variant-links"> <a href="https://www.website.com/category/797-7099-product.html#/46-conditionnement-pochette/229-capacite-20_g" class="color" title="Pochette" aria-label="Pochette" style="background-color: #000000" ></a> <span class="js-count count"></span> </div> It seems to me they are not useful. How can i remove them please ? thx ! Edited February 1, 2024 by netgui solved (see edit history) Link to comment Share on other sites More sharing options...
WisQQ Posted February 1, 2024 Share Posted February 1, 2024 You can remove them by editing themes/theme_name/catalog/_partials/miniatures/product.tpl Look for this part: {block name='product_variants'} {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} {/block} Link to comment Share on other sites More sharing options...
netgui Posted February 1, 2024 Author Share Posted February 1, 2024 thx ! It worked perfectly. I already tried this but i edited themes/theme_name/catalog/_partials/product.tpl (i think) Just for my understanding, what is the difference btw this file and the one in /miniatures/ ? Link to comment Share on other sites More sharing options...
WisQQ Posted February 1, 2024 Share Posted February 1, 2024 themes/theme_name/catalog/_partials/product.tpl this one is responsible for displaying product page themes/theme_name/catalog/_partials/miniatures/product.tpl and this one is used for listing ie. category pages, search results ect. 1 godzinę temu, netgui napisał: thx ! It worked perfectly. I already tried this but i edited themes/theme_name/catalog/_partials/product.tpl (i think) Just for my understanding, what is the difference btw this file and the one in /miniatures/ ? Link to comment Share on other sites More sharing options...
netgui Posted February 3, 2024 Author Share Posted February 3, 2024 thx for the explanation ! 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