*

Dan Dan

  • ***
  • 40 posts
How to increase the level for subcategories from 4 to 5
« on: October 01, 2020, 10:26:09 AM »
I wanted to create the following category: level 1\level 2\level 3\level 4\ and I didn't succeed.
How to increase the level for subcategories from 4 to 5
I tested it and it works flawlessly.

open the oc-admin\themes\omega\categories\index.php file
line 85
Code: [Select]
maxLevels: 4,changed to:
Code: [Select]
maxLevels: 5,
open the oc-admin\themes\omega\css\new.css file
line 631
Code: [Select]
.ui-sortable li ul li ul li ul .category_row {padding-left:49px}changed to:
Code: [Select]
.ui-sortable li ul li ul li ul li ul .category_row {padding-left:49px}
line 632
Code: [Select]
.ui-sortable li ul li ul li ul .subcategory .toggle, .subcategory .subcategory .subcategory .ico-childrens {display:none}changed to:
Code: [Select]
.ui-sortable li ul li ul li ul li ul.subcategory .toggle, .subcategory .subcategory .subcategory .subcategory .ico-childrens {display:none}
Of course, if the number of attributes or categories is very large you will have to increase the value for max_input_vars in php.ini, say 2500
and that's it!

Now I can add more subcategories.
I hope it will help you



*

MB Themes

Re: How to increase the level for subcategories from 4 to 5
« Reply #1 on: October 01, 2020, 10:35:43 AM »
@Dan Dan
Nice tip, thanks ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots