Post by clinton4 » Wed Sep 07, 2016 5:26 pm

Hi,

Without using any of the core opencart code. Could anybody show me a query and php code that would get alle categories (name, category_id and parent_id) in a multidimensional array and outputted just like the category hierarchy is? I am stuck :)

Thanks in advance :)

Spam blocking PHP script, use it!


Active Member

Posts

Joined
Sun Jan 17, 2010 11:54 am

Post by artcore » Wed Sep 07, 2016 6:18 pm

For the standard 2 level array you can take a look at the category module controller.
For unlimited levels, I can give you a hint: search for 'php + recursive menu + array'

Cheers

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands
Who is online

Users browsing this forum: No registered users and 64 guests