Results 1 to 10 of 249

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Simple Category Tree

    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

  2. #2
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: Simple Category Tree

    Thanks heaps! I'll be working on it but chances are I won't crack it... Will be looking forward to the upload as it is the final touch on my Zen Cart store!

    Quote Originally Posted by yellow1912 View Post
    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.

  3. #3
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default I have done it... Somehow.

    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!

  4. #4
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default False alarm... but new idea

    Sorry false alarm... My "New Products for March" title went walkabouts and at the same time turned on new products listing on... and not having sleep for the past week or two made me get excited and believed it was what we were after.

    However seeing that the new products listing followed the categories all the way down means that we should be able to steal some code from there then take out the function that asks if the product is new and replace our main listing with it so it digs out to the deepest categories. Possible?

  5. #5
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: Simple Category Tree

    Any help with that code yellow1912? It's been about a week and a half...

  6. #6
    Join Date
    Mar 2008
    Posts
    32
    Plugin Contributions
    0

    Default Re: Simple Category Tree

    Hi, I am building my first zen cart and am learning loads. Yellow1912, I have been playing around with your contrib. and it's great, thanks!.
    I have been trying to display ONLY the first sub-cat level all the time in the header using :

    $_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath']{0}, 0)

    But get the next level with it expanded also. Any way of just giving the first sub-cats only after selection of top cat elsewhere on the page?
    I have also tried:
    $_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath']{0}, 1)

    Thanks, DanP

    p.s. I am also looking forward to script for 'list all products under category selected'

  7. #7
    Join Date
    Oct 2005
    Posts
    71
    Plugin Contributions
    0

    Default Re: Simple Category Tree

    I've been trying to find a way to display only the subcategories in the sidebox of the corresponding Parent Categories when that Category is selected on the Horizontal Tab. I thought I got it working until I clicked on the other categories but it still displays Subcategories of the First category instead of its own.

    I have this code in the Category Sidebox template:

    $content .= $_SESSION['category_tree']->build_category_string('', 'li', '<br />', 1, 1);

  8. #8
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Simple Category Tree

    Quote Originally Posted by DanP View Post
    Hi, I am building my first zen cart and am learning loads. Yellow1912, I have been playing around with your contrib. and it's great, thanks!.
    I have been trying to display ONLY the first sub-cat level all the time in the header using :

    $_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath']{0}, 0)

    But get the next level with it expanded also. Any way of just giving the first sub-cats only after selection of top cat elsewhere on the page?
    I have also tried:
    $_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath']{0}, 1)

    Thanks, DanP

    p.s. I am also looking forward to script for 'list all products under category selected'
    This $_GET['cPath']{0} looks weird, im pretty sure it is wrong.
    Try this:
    $_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath'], 1, false, true);

    Also, make sure that you use an if statement to make it appears only if $_GET['cPath'] exists.
    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

 

 

Similar Threads

  1. Category Tree
    By fneergaard in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Aug 2010, 11:42 PM
  2. Redesigning Category Tree
    By moomo in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 30 Dec 2009, 01:53 PM
  3. Category tree
    By ner0tik in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 Aug 2006, 02:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg