Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 43
  1. #11
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: how to keep categories unfolded on sidebox

    Thank you. I finally got it to work. But, I noticed that there is vertical line and underscore in front of the sub-category.

    How do I get rid of it?

    And I would only like the top category to unfold when clicked on...Is that possible?

    Thanks again...Kim

    www.burnerbooks.com/index.php

  2. #12
    Join Date
    Sep 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: how to keep categories unfolded on sidebox

    could any one host the category_tree.php
    i'm messing up when trying ti edit it

    and i guessing we have to upload it to /includes/modules/sideboxes

  3. #13
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: how to keep categories unfolded on sidebox

    I still have not figured out how to get rid of the vertical line_ before my subcategories. Does anyone know how?

    You can see it on my site: www.burnerbooks.com/index.php in the Shop by Categories sidebox. I am still modifying my stylesheets - the light blue is too pale. I will be changing that tonight.

    Thanks,
    Kim

  4. #14
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: how to keep categories unfolded on sidebox

    That's almost a different topic.
    But you'll find the setting here: https://www.zen-cart.com/tutorials/i...hp?article=163
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #15
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: how to keep categories unfolded on sidebox


    Thank you!
    Kim

  6. #16
    Join Date
    Mar 2009
    Posts
    169
    Plugin Contributions
    2

    Default Re: how to keep categories unfolded on sidebox

    Quote Originally Posted by sotlordrahl View Post
    This is how I hacked up the zen-cart code to have the ability to unfold ANY or ALL categories to display sub-cats on all pages, not just the index page:

    open 'includes/classes/category_tree.php'

    1) change line 137

    -----------------------------------------------------------------------------------

    change

    if (zen_not_null($cPath)) {

    TO =>

    if (zen_not_null($cPath) or 1) {


    -----------------------------------------------------------------------------------

    2) insert code in lines 141-145

    ORIGINAL
    -----------------------------------------------------------------------------------

    reset($cPath_array);



    while (list($key, $value) = each($cPath_array)) {

    -----------------------------------------------------------------------------------

    insert =>

    $cPath_array = array(#,#);

    in between the reset and while commands.

    # equals the category ID you wish to be unfolded... you can have it only unfold one, or all... all would be #,#,#,#,# and so on until you have all the ID's inside the parenthesis.

    END RESULT
    -----------------------------------------------------------------------------------

    reset($cPath_array);

    $cPath_array = array(1,2,5,7);

    while (list($key, $value) = each($cPath_array)) {

    -----------------------------------------------------------------------------------

    hope this helps some people, my buddy and I spent 2 hours trying to figure this one out. tried to add some hyphens in here for reading pleasure and such... do not insert the page breaks I made. ENJOY!!!

    Any questions let me know, this is what worked for me.
    Thanks man this works great except for one problem. I used it to expand the first category on my page, and at the moment my page has 2 categories each with sub-categories. So Cat1 stays permanantly expanded on the entire website, but when a person clicks on Cat2, it loads the page, but in the categories sidebox, Cat 2 does not expand. Is there any way to sort this out?

  7. #17
    Join Date
    Mar 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: how to keep categories unfolded on sidebox?

    i have installed the expanded category list, and can't see my products listed yet, not sure if this is the hack for me, as i don't have subcategories, and help appreciated.... i can't find a direct support thread for the expanded category list....

  8. #18
    Join Date
    May 2009
    Location
    The West Coast
    Posts
    25
    Plugin Contributions
    0

    Default Re: how to keep categories unfolded on sidebox?

    Thank you, I struggled for 2 hours trying to figure out Simple Category Tree, gave up and installed this in 5 minutes as described, except the different line numbers for v1.3.8.

    I had to change some of my a hover CSS as that didn't carry over well.

  9. #19
    Join Date
    May 2009
    Location
    The West Coast
    Posts
    25
    Plugin Contributions
    0

    Default Re: how to keep categories unfolded on sidebox?

    Help! I can not set a style for the selected product after this hack.

    Previously, I just added this line to the CSS to get the currently selected product highlighted with a background color on the categories sidebar:
    Code:
    #categoriesContent a.category-products SPAN.category-subs-selected {background-color: #669900;}
    After the change, the site no longer uses the SPAN class, so there is no way for it to know which product is selected. What do I need to add to get that SPAN back in there? (v1.3.8)

  10. #20
    Join Date
    May 2009
    Location
    The West Coast
    Posts
    25
    Plugin Contributions
    0

    Default Re: how to keep categories unfolded on sidebox?

    Anyone else having problems with breadcrumbs after installing? All top level categories with a sort number higher than the current category are being displayed.

    i.e. instead of:
    Home > Sweaters > Women's Sweaters

    I am now getting:
    Home > Belts > Tshirts -> Shorts > Sweaters > Women's Sweaters

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. Disable My Account sidebox, but keep Login sidebox??
    By Upsiaus in forum Basic Configuration
    Replies: 2
    Last Post: 11 Oct 2011, 11:07 PM
  2. How NOT to show categories on main page but still keep the subcategories open?
    By Cindy2010 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Jun 2010, 06:24 AM
  3. how to keep subcategory always on in the sidebox?
    By rich00693 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Apr 2009, 04:32 PM
  4. How do I keep featured items from showing in categories
    By hookah in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Oct 2008, 10:00 PM
  5. How to display sub-categories in categories sidebox?
    By icaros in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Oct 2007, 12:22 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