Osclass - Tricks and troubleshooting

radu0507

Active member
Elite
XNullUser
Joined
May 30, 2022
Messages
188
Reaction score
178
Points
43
NullCash
577
As it is known, osclass uses a maximum of four levels for subcategories.
I will show you how you can increase the number of category levels from 4 to 5 subcategories. Of course, using the example below you can increase the number of levels to as many as you want.
I use the Omega theme for admin which needs to be modified as follows:
1. open the oc-admin\themes\omega\categories\index.php file
search: maxLevels: 4,
changed to: maxLevels: 5

2.open the oc-admin\themes\omega\css\new.css file
search: .ui-sortable li ul li ul li ul .category_row {padding-left:49px}
change to: .ui-sortable li ul li ul li ul li ul .category_row {padding-left:49px}
search: .ui-sortable li ul li ul li ul .subcategory .toggle, .subcategory .subcategory .subcategory .ico-childrens {display:none}
change to: .ui-sortable li ul li ul li ul li ul.subcategory .toggle, .subcategory .subcategory .subcategory .subcategory .ico-childrens {display:none}

You can now create five-level categories. Good luck!
 

Attachments

  • Category level.png
    Category level.png
    15.6 KB · Views: 8

webzber

Member
XNullUser
Joined
Mar 3, 2022
Messages
53
Reaction score
25
Points
18
NullCash
116
Thank You. Good work. I need to know, how to create category menu in frontend with 4 levels. For example in Delta theme when selecting category in modal, there is only 2 levels.
 

radu0507

Active member
Elite
XNullUser
Joined
May 30, 2022
Messages
188
Reaction score
178
Points
43
NullCash
577
Thank You. Good work. I need to know, how to create category menu in frontend with 4 levels. For example in Delta theme when selecting category in modal, there is only 2 levels.
I don't quite understand what you mean ... can you give better examples?
 
Top