- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
I need to display all the subcategories in category page,
In 1.9 https://www.creare.co.uk/blog/magento/magento-subcategories-category-pages
is it possible to create the same in Magento 2.3.2
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @raju_a
Please follow the below steps:
- Create static block
- Call phtml file in created static block
- Add the code at https://magento.stackexchange.com/questions/120179/get-sub-category-of-current-category-in-magento2 in phtml file to get subcategories
- Add CMS static block as shown here: https://drops.meetanshi.com/N1GeZJ
- Display mode should be static block only.
Hope the above solution will be helpful to you.
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @raju_a
Please follow the below steps:
- Create static block
- Call phtml file in created static block
- Add the code at https://magento.stackexchange.com/questions/120179/get-sub-category-of-current-category-in-magento2 in phtml file to get subcategories
- Add CMS static block as shown here: https://drops.meetanshi.com/N1GeZJ
- Display mode should be static block only.
Hope the above solution will be helpful to you.
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Display subcategories instead of products on a product listing (category) page magento 2.3
Tq very much, I will definitely try, do we have any alternative solution apart from this
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Display subcategories instead of products on a product listing (category) page magento 2.3
Hello @raju_a ,
To display subcategories information on the category page in Magento 2.
Add this below code to your theme ‘list.pthml’ file.
app\design\frontend\Themes\Yourtheme\Magento_catalog\templates\product\list.phtml
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Display subcategories instead of products on a product listing (category) page magento 2.3
Hello @raju_a
try following this blog
http://magecomp.com/blog/display-subcategories-information-category-page-magento-2/ |
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer