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 8159339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:52:28+00:00 2026-06-06T17:52:28+00:00

I need to list sibling categories in the category page in a Prestashop theme.

  • 0

I need to list sibling categories in the category page in a Prestashop theme. Currently it does show the sub-categories if any but not the sibling categories.

A quick answer would really be appreciated! Thanks.

  • 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-06T17:52:30+00:00Added an answer on June 6, 2026 at 5:52 pm

    For to start i would have created a override file in /override/controllers/, named CategoryController.php

    And add this:

    <?php
    
    class CategoryController extends CategoryControllerCore
    {
        public function displayContent()
        {
            // Get the global smarty object.
            global $smarty;
    
            // Get current category's parent.
            $parent_category = new Category($this->category->id_parent, self::$cookie->id_lang);
    
            // Get parent category's subcategories (which is current category's siblings, including it self).
            $category_siblings = $parent_category->getSubCategories((int)self::$cookie->id_lang)
    
            /* Assign your siblings array to smarty. */
            $smarty->assign(
                array(
                    "category_siblings" => $category_siblings
                )
            );
    
            /* This we run the normal displayContent, but pass the siblings array to
               category.tpl */
            parent::displayContent();
        }
    }
    
    ?>
    

    I this the basic way to do it, i have not tested it get. You need to find a way to not list current category in the list of siblings.

    If the code works you will now have an array in category.tpl named category_siblings, you now need to for example copy the code in category.tpl that outputs the subcategories and replace the subcategories arra with the category_siblings array.

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

Sidebar

Related Questions

I need a list of any well known Linux applications that uses object detection
I need a list from OldGuids that are not in the NewGuids, so I
I need help working with a large list of sibling elements with different class
I am trying to create a list of sibling pages (not posts) in WordPress
I have some loop on the page and need list item depending from loop
my_list = ['one', 'two', 'three', 'four', 'five', 'six', 'seven'] Using python, I need list
Need a list of Pcap.Net members or classes? Their website doesn't have much documentation
I need to list all files with size > 0 under a directory (where
I need to list all filenames which is having alien.digits digits can be anytime
I need the list of String parameter of request.getHeader(String value) . I already know

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.