Jump to content

Display Tree Dinamyzed In Category Page


Recommended Posts

Hi,

I have a problem, in my store i have the category tree block dynamized in a home page (<div id="page">) but, when i change of page to category or subcategory pages (<div id="category">), my tree branch its cponvert to dhtml and their style has changed.

In my module configuration, i have activated dinamic tree and the level is 0 (infinite), and in themes configuration my column left is activated in all pages.

 

I need the same categories block at all pages.

 

Many thanks.

Link to comment
Share on other sites

Might be some JS issue, could you share the site's url?

Many thanks Nemo1.

 

http://www.dieteticaeconatural.com/tienda/es/

In this page my block categories is ok. I have the class "tree dynamized" in block categories.

 

http://www.dieteticaeconatural.com/tienda/es/13-deporte

In this page, has changed and not dinamyed because i have the class "tree dhtml"

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

You need to change the blockcategories setting. You are  using the current category as root, while I guess you want to always have them all displayed

 

In my module config i have selected a home category where category root config.

index.png

 

 

the problem it's only in a page "category" displayed. in a home and a product page i can see the tree dynamized.

Link to comment
Share on other sites

Hi Nemo1 and prestashopers,
I have finally been able to activate the function, but I have had to force from the if from the blockcategories.tpl in default-theme and I forced the dynamized class. Thus leaving the code:

<ul class="tree {if $isDhtml}dynamized{/if}">

Al least i added this code in blockcategories.css from my theme:

/shop/themes/theme/css/modules/blockcategories/blockcategories.css

#categories_block_left li {
  position: relative;
}
#categories_block_left li a {
  font-weight: normal;
  display: block;
  font-size: 13px;
  line-height: 30px;
  padding: 0 0px 0 0px;
}
#categories_block_left li a:before {
  content: "\f105";
  display: inline;
  font-family: "FontAwesome";
  font-size: 12px;
  padding-right: 5px;
}
#categories_block_left li span.grower {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
  font-family: "FontAwesome";
  font-size: 10px;
}
#categories_block_left li span.grower.OPEN:before, #categories_block_left li span.grower.CLOSE:before {
  content: "\f068";
  display: block;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}
#categories_block_left li span.grower.CLOSE:before {
  content: "\f067";
}
#categories_block_left li li {
  margin-left: 10px;
}
#categories_block_left li li a {
  font-weight: normal;
}


Maybe that is a bug from mi installation... I don't know...

 

Many thanks Nemo1 for your time. +1

  • Like 1
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...