Jump to content

[SOLVED]Vertical menu with product categories


itdes

Recommended Posts

Hello,

 

I'm a new user of PrestaShop, 1.5.6.0 version, and in the last couple of days am trying to figure out how to show the product categories and subcategories in a vertical menu, same menu as the 'Top horizontal menu' but a vertical flyout one at the left column of the page. I searched a lot, but couldn't find a solution. The way that the Categories block shows the categories and products isn't the way I have to show these items.

If anyone had encountered a similar issue?

 

Thanks.

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

  • 2 weeks later...
  • 2 weeks later...
  • 4 months later...

module is currently unavailable.

i disabled it due to the conflict with top horizontal menu

if it will be fixed, i will upload it once again.

Hello vekia, do you have news about your vertical menu ?

I would like to test it.

 

Thank you in advance

Link to comment
Share on other sites

  • 3 weeks later...
  • 7 months later...
  • 1 month later...
  • 4 months later...

Please replace the following code in superfish-modified.css  and change the positions accordingly:

/*** ESSENTIAL STYLES ***/
.sf-menu > li:last-child{

border-bottom: 1px solid orange;

}
.sf-menu > li {
border-left:1px;
border-right:1px;

}



.sf-contener {
  clear: both;
  float: none;
  width: 20%;
 margin-top: -14%;
 margin-left:0px;
 z-index:2;
 }
 @media (max-width:767px){
 .sf-contener{
 clear: both;
  float: left;
  width: 100%;
 margin-top: 0px;
 margin-left:0px;
 }
 }
 
 .sf-menu,
.sf-menu * {
  margin: 0;
  padding: 0;
  list-style: none; }

.sf-menu {
  position: absolute;
  padding: 0;
  width: 100%;
  border-bottom: 3px solid #e9e9e9;
  background: #f6f6f6;
 
  position: absolute;
padding: 15px;
width: 88%;
border-bottom: 3px solid #E9E9E9;}
  @media (max-width: 767px) {
    .sf-menu {
       position:relative;
      display: none;
      padding:0;
      width:100%;
       } }

.sf-menu ul {
  position: absolute;
  top: -999em;
  background: #fff; }
  @media (max-width: 767px) {
    .sf-menu ul {
      position: relative; } }

.sf-menu ul li {
  width: 100%; }

.sf-menu li:hover {
  visibility: inherit;
  border-right:none;
  border-left:none;
  /* fixes IE7 'sticky bug' */ }

.sf-menu > li {
  float: none;
  border-right: 1px solid #d6d4d4;
  margin-bottom: -3px;
  width: 100%;
  position:relative;
  border-left:1px solid orange;
  border-right:1px solid orange;
  }
  @media (max-width: 767px) {
    .sf-menu > li {
      float: none;
      position: relative;
      border-right: none;
      width: 100%;
      }
      .sf-menu > li span {
        position: absolute;
        right: 6px;
        top: 20px;
        width: 30px;
        height: 30px;
        z-index: 2; }
        .sf-menu > li span:after {
          font-family: "FontAwesome";
          content: "\f067";
          font-size: 26px; }
        .sf-menu > li span.active:after {
          content: "\f068"; } }
  .sf-menu > li > a {
    font: 600 10px/29px Lato,sans-serif;
    text-transform: uppercase;
    color: #484848;
    display: block;
    padding: 9px 0px;
    border-bottom: 3px solid #e9e9e9;
    background-color: white;
    text-align:center;
    }
  .sf-menu > li.sfHover > a,
  .sf-menu > li > a:hover, .sf-menu > li.sfHoverForce > a {
    background: #FFEBCD;
    border-bottom-color: #666666;
    color: black;
    text-decoration:underline;
    }
.sf-menu li li li a {
  display: inline-block;
  position: relative;
  color: #777777;
  font-size: 13px;
  line-height: 16px;
  font-weight: bold;
  padding-bottom: 10px; }
  .sf-menu li li li a:before {
    content: "\f105";
    display: inline-block;
    font-family: "FontAwesome";
    padding-right: 10px; }
  .sf-menu li li li a:hover {
    color: #333; }

.sf-menu li ul {
  display: none;
  left: 100%;
  top: 0px;
  /* match top ul list item height */
  z-index: 99;
  padding: 12px 0px 18px 0px;
  -moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 13px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 13px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 13px; }
  @media (max-width: 767px) {
    .sf-menu li ul {
      top: 0;
      left:    0px;  } }

.sf-menu li li ul {
  position: static;
  display: block !important;
  opacity: 1 !important;
  background: none;
  -moz-box-shadow: transparent 0px 0px 0px;
  -webkit-box-shadow: transparent 0px 0px 0px;
  box-shadow: transparent 0px 0px 0px; }

.sf-menu li li li ul {
  padding: 0 0 0 20px; }

.sf-menu li li li ul {
  width: 220px; }

ul.sf-menu li:hover li ul,
ul.sf-menu li.sfHover li ul {
  top: -999em; }

ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {
  left: 200px;
  /* match ul width */
  top: 0; }

ul.sf-menu li li:hover li ul,
ul.sf-menu li li.sfHover li ul {
  top: -999em; }

ul.sf-menu li li li:hover ul,
ul.sf-menu li li li.sfHover ul {
  left: 200px;
  /* match ul width */
  top: 0; }

.sf-menu > li > ul {
  padding: 26px 30px 31px;
  width: 500%;
  background-color: wheat;
  border-right: 1px solid orange;
  border-top:1px solid orange;
  border-bottom:1px solid orange;
  }
 @media (max-width: 767px) {
    .sf-menu > li > ul  {
      width: 100%; } }
 
  .sf-menu > li > ul > li > a {
    text-transform: capitalize;
    font: 400 16px/29px "Roboto Slab",serif;
    color: #333; }
    .sf-menu > li > ul > li > a:hover {
      color: #096;
      }

.sf-menu > li > ul > li {
  float: left;
  width: 20%;
  padding-right: 15px; }
  @media (max-width: 767px) {
    .sf-menu > li > ul > li {
      width: 50%; } }
  @media (max-width: 479px) {
    .sf-menu > li > ul > li {
      width: 100%;
      padding-bottom: 20px; } }
  @media (min-width: 768px) {
    .sf-menu > li > ul > li.first-in-line-lg {
      clear: left; } }
  @media (min-width: 480px) and (max-width: 767px) {
    .sf-menu > li > ul > li.first-in-line-xs {
      clear: left; } }

.sf-menu > li > ul > li.category-thumbnail {
  width: 100% !important;
  float: none;
  clear: both;
  overflow: hidden;
  padding-right: 0; }
  .sf-menu > li > ul > li.category-thumbnail > div {
    float: left;
    padding-left: 10px;
    width: 33.333%; }
    @media (max-width: 479px) {
      .sf-menu > li > ul > li.category-thumbnail > div {
        width: 100%;
        padding-left: 0;
        padding-top: 10px;
        text-align: center; } }
    .sf-menu > li > ul > li.category-thumbnail > div:first-child {
      padding-left: 0; }
    .sf-menu > li > ul > li.category-thumbnail > div img {
      max-width: 100%;
      display: block; }

.cat-title {
 
  display: block;  
 
  text-transform: uppercase;
  text-align: center;
  background-color: #8DC73F;
  height: 29px;
  color: white;
  padding-top: 6px;
  font-family: bold;
  font: 600 13px Lato,sans-serif;
  font-size: 18px;
  padding-bottom: 30px;
  width:100%;
  border-radius: 4px;
 
  display: block;
text-transform: uppercase;
text-align: center;
background-color: #8DC73F;
height: 29px;
color: #FFF;
padding-top: 6px;
font: 600 18px Lato,sans-serif;
padding-bottom: 29px;
width: 100%;
border-radius: 4px;
margin-left: 2px;
 
  }
  @media (max-width: 767px) {
    .cat-title {
      display: block;
      font: 600 18px/22px "Open Sans", sans-serif;
      text-transform: uppercase;
      color: black;
      display: block;
      padding: 17px 20px;
      border-bottom: 3px solid #e9e9e9;
      background: #f6f6f6;
      position: relative;
width:100%;    
margin-left:0px;

 }
      .cat-title:hover {
        background: #333;
        border-bottom-color: #666666;
        color: #fff; }
      .cat-title:after {
        display: block;
        font-family: "FontAwesome";
        content: "\f067";
        position: absolute;
        right: 15px;
        top: 18px;
        font-size: 26px; }
      .cat-title.active:after {
        content: "\f068"; } }

.sf-menu li.sf-search {
  border: none; }
  .sf-menu li.sf-search input {
    display: inline;
    padding: 0 13px;
    height: 30px;
    line-height: 30px;
    background: #fff;
    margin: 13px 10px 0 0;
    font-size: 13px;
    color: #9c9b9b;
    border: 1px solid #d6d4d4; }

#block_top_menu .category-thumbnail {
  clear: both;http://localhost:100/prestashop/23-grocery
  width: 100%;
  float: none; }
  #block_top_menu .category-thumbnail div {
    float: left;
    width: 33.33333%; }
    #block_top_menu .category-thumbnail div img {
      max-width: 100%; }
#block_top_menu li.category-thumbnail {
  padding-right: 0; }

/*# sourceMappingURL=superfish-modified.css.map */

 

Cheers
 

  • Like 1
Link to comment
Share on other sites

  • 4 months later...
  • 11 months later...

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...