Thread
:
Showing all categories, subcategories and sub-subcategories
View Single Post
#
2
07-04-2020, 11:32 PM
Ed B.
X-Adept
Join Date: Apr 2016
Posts: 446
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
Ed B.
View Public Profile
Send a private message to Ed B.
Find all posts by Ed B.