View Single Post
  #2  
Old 07-04-2020, 11:32 PM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default Re: Showing all categories, subcategories and sub-subcategories

Code:
$categories = \XLite\Core\Database::getRepo('XLite\Model\Category')->findAll();
should do the job. (Categories, subcategories, sub-subcategories are all stored as entries of
xc_categories table).
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote