Thanks, I'll take a look at the setup of that array and try massaging its contents.
Thanks, I'll take a look at the setup of that array and try massaging its contents.
Something like this: (all the categories will be listed in category_tree array, each category will have the elements as shown)
category_tree (array)
- 22 (array)
- name (string) => test
- parent_id (string) => 0
- path (array)
- 0 (string) => 22
- sub_cats (array)
- 0 (string) => 23
- 1 (string) => 24
- sub (string) => has_sub
- cPath (string) => 22
- deepest_cats (array)
- 0 (string) => 23
- 1 (string) => 26
- 2 (string) => 27
- 0 (array)
- sub_cats (array)
- 0 (string) => 22
- 1 (string) => 8
- 2 (string) => 6
- 3 (string) => 21
- 4 (string) => 11
- 5 (string) => 9
- 6 (string) => 10
- 7 (string) => 16
- 8 (string) => 17
- 9 (string) => 18
- 10 (string) => 15
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Thanks for the listing, that will make it quicker to start working with it.
Hello there,
This may be a stupid question, so bear with me if it is. I have CSS dropdown category dropdown installed, is it possible to integrate this method with the simple category tree? I was interested in the part on reducing load time on the server, as I have loads of categories.
Thanks in advance,
Heathenmagic![]()
I believe that mod already does a pretty good job reducing the load. You may want to check that module's code and see how it queries the database.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Hmm... I've been trying with the retrieve_deepest_cats_array($categories_id) function but still no luck. Anyone made any progress?
No luck here
I'll upload a package here around, lets say, within 1 or 1 and a half week. If you cant wait, feel free to work on it though.
Regards.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Ok this is crazy... I completely screwed up my shop the other night by deleting a few files I hadn't backed up then uploaded what I had but that crashed my shop, so I started over (thankfully I am still building the shop so it is not live). However, I have been mucking around with a few files n making slight changes, and somehow I have managed to succeed with what we have all been stuggling to accomplish!
I HAVE PRODUCTS FROM SUBCATEGORIES SHOWING UP IN MY PARENT CATEGORIES!!!!! WOOOHOOOOO!!!
Anyway, when I get to the bottom of the subcategories (eg the category that holds the products), there is a double up so I just need to find the function that shows the products and see if I can delete just one of them.
Any tips are helpful but I will post back here once I compare my file backups and see what exactly I did that made this fortunate accident!!! I have pretty much no clue with Zen language or any other coding (apart from HTML and grasping css now) so I have no idea how this managed to work!
Will post as soon as I know what it is!
Bookmarks