5haun Posted February 11, 2015 Share Posted February 11, 2015 Hello everyone, How do I display the categories for a product in the breadcrumb from a search? It showing like this right now when I click on a product from a search: If I click on a product directly from the categories it shows like this: That's how I want it to display. Any help or suggestions will be greatly appreciated! Link to comment Share on other sites More sharing options...
jfcordova Posted May 13, 2015 Share Posted May 13, 2015 Hello 5haun, i am looking to do the same, did you managed to get this?? Link to comment Share on other sites More sharing options...
PascalVG Posted May 14, 2015 Share Posted May 14, 2015 You could use the function: (In classes/Product.php) /** * Get list of parent categories * * @since 1.5.0 * @param int $id_lang * @return array */ public function getParentCategories($id_lang = null) To get the 'parents' (i.e. category path from Home -> Product). Then build the breadcrumb out of it. Probably in controllers/front/SearchController.php My 2 cents, pascal. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now