| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Showing all categories, subcategories and sub-subcategories | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi I am trying to show all categories, subcategories and sub-subcategories on a single page.
How can I achieve this? Thanks and Regards, Sid
__________________
Version 5.3.6.6 |
|||||||
#2
|
|||||||
|
|||||||
![]() Code:
xc_categories table).
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
|
#3
|
|||||||
|
|||||||
![]() Hi Ed,
Thanks for your reply. I am trying to show display them to the customer area. Where do I add this code? I created a new page following this - https://devs.x-cart.com/basics/creating_new_page.html#creating-page-in-customer-area Now, how do I display all Categories, subcategories, sub-subcategories here? Kind Regards, Sid
__________________
Version 5.3.6.6 |
|||||||
#4
|
|||||||
|
|||||||
![]() Inside body.twig.
Basically you define categories in the view class so that they are accessible from twig and you loop over them in the twig.
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
|
|||
X-Cart forums © 2001-2020
|