Creating another category list

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
I have a category list:

Category 1
Category 2
Category 3
Category 4
Category 5

What if I want ANOTHER one? Like:

Category 6
Category 7
Category 8
Category 9
Category 10

I don't want all the categories in one UL > LI. Thanks.
7 years ago
crizilla wrote:
I have a category list:

Category 1
Category 2
Category 3
Category 4
Category 5

What if I want ANOTHER one? Like:

Category 6
Category 7
Category 8
Category 9
Category 10

I don't want all the categories in one UL > LI. Thanks.


Hi,

could you elaborate a bit on the desired outcome ?

Kind regards,
Aleks
7 years ago
I want to have a 2nd category list. When I add categories it just gets added to the end of the current list (or wherever placement i set it to). I want to start another list.

cat 1
cat 2
cat 3

SOMETHING HERE LIKE A PICTURE OR SOMETHING.

THEN HERE ANOTHER CATEGORY LIST
7 years ago
Just in case there's still some confusion, I mean like this:

SHIRTS
Category 1
Category 2
Category 3

SHOES
Category 1
Category 2
Category 3

etc..
7 years ago
crizilla wrote:
I have a category list:

Category 1
Category 2
Category 3
Category 4
Category 5

What if I want ANOTHER one? Like:

Category 6
Category 7
Category 8
Category 9
Category 10

I don't want all the categories in one UL > LI. Thanks.


go to this path and find Create Post method

Presentation/Nop.Web/Administration/Controllers/CategoryController.cs
adding flowing code

var lastCategoryId = _categoryService.GetAllCategories().Count();
category.Name = (category.Name + '-' + lastCategoryId).ToString();




----------------------------------  If the Post Is helpful Please Vote Up.

Thanks advance for watching my post
Best regard
Bibhuti Barai
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.