Jump to content

(SOLVED) Hide attributes list on category page


ValterV

Recommended Posts

Ok, go to:

prestashop/themes/default-bootstrap/product-list-colors.tpl

change 

<ul class="color_to_pick_list clearfix">

to

<ul class="color_to_pick_list clearfix" style="display: none !important;">

 

or comment:

<!--

<ul class="color_to_pick_list clearfix">
    {foreach from=$colors_list item='color'}
        {if isset($col_img_dir)}
            {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, Configuration::get('PS_REWRITING_SETTINGS'), false, true)|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>
        {/if}
    {/foreach}
</ul>

-->

 

After change code, clear Prestashop and browser cache.

product-list-colors.tpl

Edited by Guest (see edit history)
Link to comment
Share on other sites

themes/default-bootstrap/product-list.tpl

find line 170 ...172:

{if isset($product.color_list)}
						<div class="color-list-container">{$product.color_list}</div>
					{/if}

and replace to:

{if isset($product.color_list)}
						<div class="color-list-container" style="display: none !important;">{$product.color_list}</div>
					{/if}

If it helps you, your LIKE will help me 😉

Edited by Guest (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...