lemonpromotions Posted November 21, 2014 Share Posted November 21, 2014 Can anyone please tell me the best way to hide sub categories here: Link to comment Share on other sites More sharing options...
NemoPS Posted November 21, 2014 Share Posted November 21, 2014 In the center column? That looks like a third party module, can you confirm? Link to comment Share on other sites More sharing options...
lemonpromotions Posted November 21, 2014 Author Share Posted November 21, 2014 I can confirm it is not a third party module. This is a completely fresh, untouched installation Link to comment Share on other sites More sharing options...
vekia Posted November 21, 2014 Share Posted November 21, 2014 category.tpl remove / comment out {* comment *} code: {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <!-- Subcategories --> <div id="subcategories"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} {/if} Link to comment Share on other sites More sharing options...
lemonpromotions Posted November 21, 2014 Author Share Posted November 21, 2014 Hi, thanks for that Yes I tried this before from another post on the forum - but it doesnt seem to have made any difference. Thanks for your time Link to comment Share on other sites More sharing options...
Paulito Posted November 22, 2014 Share Posted November 22, 2014 Hello Have you tried going to: public_html/Your Shop/themes/default-bootstrap/css/category.css and add around line 41 display:none: #subcategories { border-top: 1px solid #d6d4d4; padding: 15px 0 0px 0; } #subcategories p.subcategory-heading { font-weight: bold; color: #333333; margin: 0 0 15px 0; display:none; } #subcategories ul { margin: 0 0 0 -20px; } #subcategories ul li { float: left; width: 128px; margin: 0 0 13px 20px; text-align: center; height: 202px; display:none; } #subcategories ul li .subcategory-image { padding: 0 0 8px 0; } Before http://screencast.com/t/fmqWtCLNa2 After http://screencast.com/t/k1TyRHqcNd Sorry if I'm barking up the wrong tree Paul Link to comment Share on other sites More sharing options...
NemoPS Posted November 22, 2014 Share Posted November 22, 2014 I don't get this point: why are subcategories displaying the product number? Did you alter the template/controller for this? Link to comment Share on other sites More sharing options...
lemonpromotions Posted November 22, 2014 Author Share Posted November 22, 2014 As I said before Nemo1 - this is a totally clean installation, I have not edited or changed it at all - it is straight out of the box. Paulito: I took your suggestion and did some more investigation. What you suggested didnt solve the issue but this did: ../modules/homepagecategories/css/homepagecategories.css Line 81 add display:none: here - #homepagecategories .homepagecategories_subcat a { display:none; margin:0 2px; } Thank you for everyones help !!!! Link to comment Share on other sites More sharing options...
NemoPS Posted November 24, 2014 Share Posted November 24, 2014 Ah, that's it then homepagecategories is not a default module Link to comment Share on other sites More sharing options...
lemonpromotions Posted November 24, 2014 Author Share Posted November 24, 2014 Ahhhh so sorry, didnt occur to me.....its kind of is in my head hehehe. Link to comment Share on other sites More sharing options...
Paulito Posted November 24, 2014 Share Posted November 24, 2014 Hello That explains it, I couldn't workout what I was doing wrong. @lemonpromotions Happy your Happy Paul Link to comment Share on other sites More sharing options...
somits1 Posted February 20, 2015 Share Posted February 20, 2015 Hi, This is Somit and running my site http://slmobileprice.com using prestashop v1.5.6.2 english. In my site i want to hide subcategories from center (above product page). Whenever i click on Categories their subcategories also showing on product page. So could you please tell me how to hide subcategories from the product page.. Please check screen shot. Thanks, Somit Link to comment Share on other sites More sharing options...
NemoPS Posted February 20, 2015 Share Posted February 20, 2015 On the product page? YOu mean on the single product page? The screen only shows a category page, and if you want to disabled them over there, you simply have to take off the whole {if $subcategories} part from category.tpl Link to comment Share on other sites More sharing options...
somits1 Posted February 20, 2015 Share Posted February 20, 2015 Thanks For reply. not on single product page . If i am selecting one Categories which has also subcategories. So I want to so only products of subcategories but both are displaying subcategories and products. Link to comment Share on other sites More sharing options...
somits1 Posted February 20, 2015 Share Posted February 20, 2015 Hi Nemo1, I have Removed these code from Category.tpl file , Am i right? {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <h3>{l s='Subcategories'}</h3> <ul class="inline_list"> {foreach from=$subcategories item=subcategory} <li class="clearfix"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> {if $subcategory.description} <p class="cat_desc">{$subcategory.description}</p> {/if} </li> {/foreach} </ul> <br class="clear"/> </div> {/if} Link to comment Share on other sites More sharing options...
NemoPS Posted February 21, 2015 Share Posted February 21, 2015 Yes, actually if you're on 1.6.0.9 or newer you can disable subcategories from the theme configurator module (just noticed ) 1 Link to comment Share on other sites More sharing options...
somits1 Posted February 21, 2015 Share Posted February 21, 2015 Ok, thanks for your help Now Subcategories not displaying on Page .. Thanku so much. 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