Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Independant Sub-Category Menu? Rate Topic   - - - - -

 
  • daimion
  • Member
  • Trial users
  • Join Date: 19-Mar 15
  • 31 posts

Posted 19 February 2018 - 01:59 AM #1

I currently have my main horizontal menu, and I've changed it to display "Select Your Vehicle" when in mobile view.

 

I then wanted to create a vertical menu within each category, which showed the sub-category tree. However, when I go to mobile view again, it still displays the same text "Select Your Vehicle" in the sub-category menu as well. When I try to change it, both menus change to have the same text.

 

Is it possible to create the sub-category menu completely seperate and have its own text, and if possible also have a different style?

 

Note: I have also tried by creating a menu as a new block, instead of just using the available side menu block.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17368 posts

Posted 19 February 2018 - 06:41 AM #2

To show different menu block for mobile and desktops please use the following classes for the corresponding blocks

 

- hidden-phone

- visible-phone


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • daimion
  • Member
  • Trial users
  • Join Date: 19-Mar 15
  • 31 posts

Posted 19 February 2018 - 09:28 AM #3

To show different menu block for mobile and desktops please use the following classes for the corresponding blocks

 

- hidden-phone

- visible-phone

 

This has actually been useful information which will come in handy for me. BUT actually this wasn't the problem I was referring to.

 

I've included some screen grabs:

 

So you can see in the first image, that the side menu displays the subcategory tree. So I still have the main menu on top which continues to show all the categories.

But in the second image, you can see that me side menu is now showing - "Select your Vehicle Model", which is the same as the main menu. So I still need the main menu in mobile view, but I want the side menu to have a different text.

 

side-category-desktop.jpg

 

side-category-mobile.jpg



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17368 posts

Posted 19 February 2018 - 01:30 PM #4

design/themes/THEME/templates/blocks/topmenu_dropdown.tpl

 

Try to replace

<span>{__("menu")}</span>

with

<span>{__("block.name")}</span>

then clear cache.

 

As a result menu label will be equal to block name


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.