Magento How to Listing sub-categories on a category page
16326
single,single-post,postid-16326,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-5.9,wpb-js-composer js-comp-ver-4.3.4,vc_responsive

Magento How to Listing sub-categories on a category page

magento_subcategories_on_gallery_pages_listing_2

23 Jul Magento How to Listing sub-categories on a category page

Magento How to Listing sub-categories on a category page

This tutorial is going to show you one of the ways to list sub-categories on category pages of your Magento store.
In order to display thumbnails of subcategories and their names on your category pages:

  1. In your Magento admin go to CMS -> Static Blocks

magento_subcategories_on_gallery_pages_listing_1

    1. Click “Add New Block” at the top right.
    2. Create a new static block as follows:

Block Title: Sub Category Listing
Identifier: subcategory_listing
Status: Enabled
Content:

magento_subcategories_on_gallery_pages_listing_2

    1. Click “Save Block” at the top right.
    2. From the Top menu go to Catalog –> Manage Categories.
    3. Select the category that has sub-categories and under the “Display Settings Tab” reflect the following:

Display mode: Static Block only
 OnlyCMS Block: Sub Category Listing
Is Anchor: No.

magento_subcategories_on_gallery_pages_listing_3

7.Click “Save category” at the top right.

8.On your computer create a new file called “subcategory_listing.phtml” with the following content:

 

9.Connect to the FTP directory where your Magento files are stored using File manager and upload the file to the following directory:

app/design/frontend/default/MY-TEMPLATE-DIR/template/catalog/navigation/
(if any folder from this directory is missing, you will need to re-create it)

10.From your FTP, navigate to app\code\core\Mage\Catalog\Block\Navigation.php.

11.Copy the Navigation.php file to your computer.

From your FTP, navigate to app\code\local\Mage\Catalog\Block\ and upload the copied Navigation.php to this directory (if any folder from this directory is missing, you will need to re-create it).

12.In the “Navigation.php” look for this part:

 

13. And replace it with this

 

14 . From the front end of your site open the category with the sub-categories added to it. Now it should show  the sub-categories listing.

magento_subcategories_on_gallery_pages_listing_4

 

15.If you do not see the changes, try clearing your Magento/browser cache. If your sub-categories show no thumbnails, please make sure that the images are actually uploaded to your subcategories.

Feel free to check the detailed video tutorial below:

Jenny Tran
hatran260612@gmail.com
No Comments

Post A Comment