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

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

How can I do it?

Thanks.
Hace 1 semana
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
Hace 1 semana
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?
Hace 1 semana
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
Hace 1 semana
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?
Hace 1 semana
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