How can I display the list of all existing categories on one page?

1 week ago
I want to display the list of all existing categories (links) on one page.

How can I do it?

Thanks.
1 week ago
you can check CategoryNavigationViewComponent code
at this path Nop.Web\Views\Shared\Components\CategoryNavigation\Default.cshtml
there all the categories show as a link.
//Rashed
1 week ago
nopStation wrote:
you can check CategoryNavigationViewComponent code
at this path Nop.Web\Views\Shared\Components\CategoryNavigation\Default.cshtml
there all the categories show as a link.
//Rashed


Will this also work in version 3.90?
How can I do it, please?
1 week ago
You can simply create new component same way as CategoryNavigationViewComponent and implement it to the any page such as homepage or category. You will also need to create view inside your theme "\Views\Shared\Components\{Component name}\Default.cshtml".

You can also create widget type plugin instead of customization and you can use ready plugin template which nopCommerce provides.
https://github.com/nopSolutions/nopCommerce-plugin-template-VS/tree/nopCommerce-4.60

Best Regards,
Faiz
1 week ago
nopAdvance.com wrote:
You can simply create new component same way as CategoryNavigationViewComponent and implement it to the any page such as homepage or category. You will also need to create view inside your theme "\Views\Shared\Components\{Component name}\Default.cshtml".

You can also create widget type plugin instead of customization and you can use ready plugin template which nopCommerce provides.
https://github.com/nopSolutions/nopCommerce-plugin-template-VS/tree/nopCommerce-4.60

Best Regards,
Faiz


May I do it without touching the source code?
1 week ago
Yes. You can create plugin as I suggested in my last reply. You can follow nopCommerce developer guide for how to create plugin.
https://docs.nopcommerce.com/en/developer/plugins/how-to-write-plugin-4.60.html
https://github.com/nopSolutions/nopCommerce-plugin-template-VS/tree/nopCommerce-4.60

Best Regards,
Faiz