Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8549855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:49:00+00:00 2026-06-11T13:49:00+00:00

I am facing one problem; I am having 2 parent category parent1 and parent2

  • 0

I am facing one problem; I am having 2 parent category parent1 and parent2
Parent1 contain 4 sub category and parent2 not having any child category.

now what i want is when user click on parent1 then it should not redirect to particular category page but when user click on one of the sub category of parent1 category then it should redirect to particular sub category page but when user click on parent2 (which doesn’t contain any child category) then it should redirect to particular parent category page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:49:01+00:00Added an answer on June 11, 2026 at 1:49 pm

    You will need to modify the Navigation block.

    Copy code/core/Catalog/Block/Navigation.php

    to

    code/local/Catalog/Block/Navigation.php

    modify this method: _renderCategoryMenuItemHtml() to suite your needs.
    You will need to check if the category has children and change the HTML markup depending on that.

    This will however, change for both top and left hand navigation. If you want to change just the left hand navigation you can do this:

    a) rename code/local/Catalog/Block/Navigation.php to something else (also change the class name inside the file to Mage_Catalog_Block_Navigationleft), for example

    code/local/Catalog/Block/Navigationleft.php

    b) Change the XML config to use our new block for the left hand nav:

    <reference name="left">
        <block type="catalog/navigationleft" name="catalog.leftnav" after="currency" 
            template="catalog/navigation/left.phtml"/>
    </reference>
    

    Magento will then continue to use the original Navigation block for the top nav 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Evening, I'm facing a small problem which I can't get fixed. I'm having one
I am facing one problem from last one week. I have one list having
One problem that I am facing is having many queries with similar select statements
Im facing one problem in streaming data capture for reading the broadcast data during
We are facing one problem with DownloadStringCompleted method always returning same result in windows
i am facing one problem.i have a class named ReportingService and it should be
I'm developing android application with phonegap . Currently I'm facing one problem with inputbox
I am learning OpenCV using Learning OpenCV book. One problem I am facing while
I am facing a problem in accessing the mysql DB on one of my
I am facing a problem while disabling the command button after one click. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.