budgetchic Posted October 5, 2014 Share Posted October 5, 2014 I do not want all the color attributes showing when all the products are listed on the category page. It looks too messy. How can I hide the attributes from the category page only. Thanks! Link to comment Share on other sites More sharing options...
budgetchic Posted October 6, 2014 Author Share Posted October 6, 2014 bump Link to comment Share on other sites More sharing options...
exposeclothing Posted October 19, 2014 Share Posted October 19, 2014 i also would like to know how to hide the product attributes, but in the product list, where all the products are dsplayed, but still have them visible on the product page itself Link to comment Share on other sites More sharing options...
exposeclothing Posted October 19, 2014 Share Posted October 19, 2014 Hey BudgetChic i have figured it out....well im not a proffessional coder or anything, but i did find an option which works great for me, and so far theres no issues with the solution. in your themes folder (mine was defaultbootstrap) you will see a file named product-list-colors.tpl i just commented out the text by using {* text to be commented out here *} i have changed the colours to red to show what i did. <ul class="color_to_pick_list clearfix"> {*{foreach from=$colors_list item='color'} {assign var='img_color_exists' value=file_exists($col_img_dir|cat:$color.id_attribute|cat:'.jpg')} <li> <a href="{$link->getProductLink($color.id_product, null, null, null, null, null, $color.id_product_attribute)|escape:'html':'UTF-8'}" id="color_{$color.id_product_attribute|intval}" class="color_pick"{if !$img_color_exists && isset($color.color) && $color.color} style="background:{$color.color};"{/if}> {if $img_color_exists} <img src="{$img_col_dir}{$color.id_attribute|intval}.jpg" alt="{$color.name|escape:'html':'UTF-8'}" title="{$color.name|escape:'html':'UTF-8'}" width="20" height="20" /> {/if} </a> </li> {/foreach} *} Now on the product listing page / catalogue page, it hides the colour icons/attributes, but they are still available on the product page 4 Link to comment Share on other sites More sharing options...
budgetchic Posted October 19, 2014 Author Share Posted October 19, 2014 Hey BudgetChic i have figured it out....well im not a proffessional coder or anything, but i did find an option which works great for me, and so far theres no issues with the solution. Now on the product listing page / catalogue page, it hides the colour icons/attributes, but they are still available on the product page Thank you sooooo much! That did the trick!!! SOLVED! Link to comment Share on other sites More sharing options...
leozao Posted April 19, 2015 Share Posted April 19, 2015 Thank you...that solved my problem too Maybe is good this to be an option in the backoffice in the future development of presta.... Link to comment Share on other sites More sharing options...
steffran Posted April 5, 2019 Share Posted April 5, 2019 Thank you!!!! I know. It's an old topic, but solved my problem too! Link to comment Share on other sites More sharing options...
leozao Posted April 6, 2019 Share Posted April 6, 2019 Hello, Still not an option in backoffice for this !? Steffran, do you use PS 1.7 ? If so, you don't have an option for this in back office? tks, 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