Results 1 to 10 of 12

Hybrid View

  1. #1

    Default Enable Categories Links in Sidebox

    In case I don't explain myself well enough, I am having the exact same problem as described in this old thread:

    http://www.zen-cart.com/forum/showthread.php?t=136874

    My main categories on my homepage open up to show their sub-categories when I click on them, they don't take me to their specific webpage.

    I want it so that when I click on a parent category in the sidebox, it will open to that page, instead of just cascading down to show its sub-categories. The code in my categories.php file is far too complex for me to have any clue what to do about it.

    I was hearing about something called YahooTreeMenu that can do it but can't find anywhere to download it. I came across a demo website that had it implemented and it's perfect because it not only opens to the category page when clicked, but it also opens to show its sub-categories at the same time: http://demo.zen-cart.org.ua/

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Enable Categories Links in Sidebox

    It's possible I don't understand your question, but the behavior shown in the demo site you referenced is the stock Zencart behavior (see www. stevesh.org/demo), so we'll need to see your site to advise.

  3. #3

    Default Re: Enable Categories Links in Sidebox

    my website is www.oldewatches.com.

    If that is the default zencart category thing, is it possible to just somehow get the original categories.php and overwrite my one? Or are there other things that need to be changed as well?

    I tried overwriting it with one that was similar, but it just screwed the categories up.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Enable Categories Links in Sidebox

    What's your setting in Admin - Configuration - Product Listing - Show SubCategories on Main Page while navigating

  5. #5

    Default Re: Enable Categories Links in Sidebox

    It was on, set to 1. I set it to 0 and nothing changed at all, I believe my website is heavily customized (I didn't design it) so lots of things via admin don't really work or show up.

    Pretty much now what I'm having to do is get an original tpl_categories.php file and narrowing down any differences between it and my current tpl_categories.php. I have absolutely no idea which part of the code to change, but it's trial and error.

  6. #6

    Default Re: Enable Categories Links in Sidebox

    Ok, I think I found a solution, or rather the part of the code that needs changing. Maybe this isn't the exact proper way to do it, but it will have to do.

    Code:
    if($new_style=='category-subs'){
    		if ($k==0) $content .= '</ul>';
          $content .= '<h2><a href="javascript:void(0)">'.$box_categories_array[$i]['name'].'</a></h2>'."\n";
    	   $content .='<ul>'. "\n";
    	  $k=0;
    This part, when I change the javascript part in <a href="javascript:void(0)"> to say, my homepage, when I click on the brand it takes me to the homepage. Obviously, this applies for all brands and I need it so that when I click on a brand, it takes me to that specific page.

    Does anyone know that correct zencart code or whatever to place there so that each brand will take me to its respective page? I'm guessing it might be something like zen_href_link(FILENAME_DEFAULT

 

 

Similar Threads

  1. Categories sidebox links quit working.
    By cal743 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 27 Jan 2012, 05:09 AM
  2. CSS: Underlining Links in Categories Sidebox
    By eyal8r in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Feb 2010, 07:25 PM
  3. Enable Links for Parent Categories in Categories Sidebox
    By MrsQ in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Sep 2009, 08:25 PM
  4. Rollover Image Links in Categories Sidebox
    By pensive612 in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 30 Apr 2009, 11:17 PM
  5. Categories sidebox with EZpages links
    By strelitzia in forum Addon Sideboxes
    Replies: 3
    Last Post: 26 Sep 2008, 10:20 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