Page 18 of 25 FirstFirst ... 81617181920 ... LastLast
Results 171 to 180 of 249
  1. #171
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Simple Category Tree

    The debug utility is telling me

    [25-Oct-2008 23:46:12] PHP Parse error: syntax error, unexpected T_VARIABLE in /home/litez/public_html/includes/templates/template_default/sideboxes/tpl_my_categories.php on line 3
    with the following (amended) code

    PHP Code:
    <?php
    $content 
    '';
    $content .= $_SESSION['category_tree']->build_category_string('ul''li'''02$categories_id 0 retrieve_categories_tree_array() build_deepest_level_children() 

    retrieve_deepest_cats_array($categories_1categories_2categories_3);
    ?>

  2. #172
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Simple Category Tree

    There seems to be only two variations of simple_category_tree that will work, even with all_subcats_products installed, and both are as listed in the readme and sample files:

    PHP Code:
    <?php
    $content 
    '';
    $content .= $_SESSION['category_tree']->build_category_string('ul''li'''02);
    ?>
    (unordered list version)

    PHP Code:
    <?php
    $content 
    .= $_SESSION['category_tree']->build_category_string($parent_tag 'div'$child_tag 'span'$divider ''$categories_id 0$max_level 9$include_root 

    false$strict false)
    ?>
    (flat line version)

    neither gives a fully expanded tree, and the additional variables (help file) do not seem to change anything.

    Personally, I'm a little puzzled..

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

    Default Re: Simple Category Tree

    Why do you call a class method that way?
    // call this first to build the children, and a class method has to be called like this

    $_SESSION
    ['category_tree']->
    build_deepest_level_children() ;

    $content .= $_SESSION['category_tree']->build_category_string('ul', 'li', '', 0, 2);
    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

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

    Default Re: Simple Category Tree

    Also. this is clearly very very wrong:

    $content .= $_SESSION['category_tree']->build_category_string('ul', 'li', '', 0, 2) $categories_id = 0 retrieve_categories_tree_array() build_deepest_level_children()


    1. You can not call a class method without using the object
    2.
    $categories_id = 0 retrieve_categories_tree_array() build_deepest_level_children()
    Something like this will of course give you a bunch of errors
    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

  5. #175
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Simple Category Tree

    OK, thanks, but now I have lost the main page and have no footer, with the error

    [26-Oct-2008 00:30:29] PHP Parse error: syntax error, unexpected T_VARIABLE in /home/litez/public_html/includes/templates/template_default/sideboxes/tpl_my_categories.php on line 3


    The sticking point is trying to pesuade the code to put a fully expanded tree into an unordered list. - I just cannot get the syntax right...
    Last edited by some name not taken; 26 Oct 2008 at 08:35 AM.

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

    Default Re: Simple Category Tree

    Which means you have a syntax error on that line :), and since I cant see that line I dont know what it is.

    Quote Originally Posted by some name not taken View Post
    OK, thanks, but now I have lost the main page and have no footer, with the error



    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

  7. #177
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Simple Category Tree

    PHP Code:
    <?php
    $content 
    '';
    $content .= $_SESSION['category_tree']->build_category_string('ul''li'''04$build_deepest_level_children() ;
    ?>
    I am trying to build a fully expanded tree in unordered list format, but I keep screwing up the syntax.

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

    Default Re: Simple Category Tree


    $content .= $_SESSION['category_tree']->build_category_string('ul', 'li', '', 0, 4) $build_deepest_level_children() ;

    Why do you have this:
    $build_deepest_level_children()?

    Please read the example I posted above

    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

  9. #179
    Join Date
    Sep 2008
    Posts
    106
    Plugin Contributions
    0

    Default Re: Simple Category Tree

    Yes, sorry, - getting there now...

    PHP Code:
    <?php
    $_SESSION
    ['category_tree']->build_deepest_level_children() ;
    $_SESSION['category_tree']->retrieve_cpath() ;
    $content .= $_SESSION['category_tree']->build_category_string('ul''li'''02); 
    ?>
    It's still not doing what I want, but I think this is how it should be.

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

    Default Re: Simple Category Tree

    What are you trying to do?
    Quote Originally Posted by some name not taken View Post
    Yes, sorry, - getting there now...

    PHP Code:
    <?php
    $_SESSION
    ['category_tree']->build_deepest_level_children() ;
    $_SESSION['category_tree']->retrieve_cpath() ;
    $content .= $_SESSION['category_tree']->build_category_string('ul''li'''02); 
    ?>
    It's still not doing what I want, but I think this is how it should be.
    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 18 of 25 FirstFirst ... 81617181920 ... 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