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

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

How can I do it?

Thanks.
1 周 前
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 周 前
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 周 前
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 周 前
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 周 前
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