Page 7 of 25 FirstFirst ... 5678917 ... LastLast
Results 61 to 70 of 249
  1. #61
    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?

  2. #62
    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...

  3. #63
    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'

  4. #64
    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);

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

    Default Re: Simple Category Tree

    Display all sub cat products module included !!!
    Attached Files Attached Files
    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

  6. #66
    Join Date
    May 2006
    Posts
    80
    Plugin Contributions
    0

    Default Re: Simple Category Tree

    Wooooo hooo.

    I think the number of Zenners this will help may be underestimated. Ive been looking for this for over a year!

    I will give this a try first thing in the morning.

    THANKS SO MUCH!!!!

  7. #67
    Join Date
    Mar 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Simple Category Tree

    Thank you soooo much for your great effort. Was looking for it for quite some time. I tried it and it works. The only thing was that I had to add a space after the 'select distinct' statement in the index_filters/default_filter.php.

    I

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

    Default Re: Simple Category Tree

    Quote Originally Posted by Noella View Post
    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);
    Oh, first, if you use li for the the child then you need to use ul for the parent cats.
    Also, if you need to display subcats of the current cat you need to pass that parent cat id into it *using $cPath or $_GET['cPath']
    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

  9. #69
    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

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

    Default Re: Simple Category Tree

    Fixed a few bugs with displaying all sub products.
    For those who already installed it, simply over-write the default_filter.php
    Attached Files Attached Files
    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

 

 
Page 7 of 25 FirstFirst ... 5678917 ... LastLast

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR