Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Posts
    72
    Plugin Contributions
    1

    Default Display only certain Category Names

    Hi Guys,

    I have installed blank sidebox and there I want to display only certain Category Names.

    EG I have Caregory A, B, C

    But in the Sideboy I want only A and B to show up.

    I have read stuff about $categories_id and $categories_name but I am not sure how to get the name by using the ID. Any help would be appreciated.

    Cheers

    D.C.

  2. #2
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Display only certain Category Names

    If you're looking to hide a category you could use this.

    http://www.zen-cart.com/downloads.php?do=file&id=254

    Why are you trying to hide it?

    Another solution is to also disable the category and THEN go into the category and re-enable each subcategory and product. Depends on your desired result.

  3. #3
    Join Date
    Feb 2006
    Posts
    72
    Plugin Contributions
    1

    Default Re: Display only certain Category Names

    Thank you for your reply. I am not trying to hide a category, I am rather trying to point out a few certain catwgories. I could do it manually by simply creating a link like this: <a href="index.php?main_page=index&cPath=1>Category A</a> but I thought there should be a more dynamic solution, as I am working with 2 languages. I already figured it out btw.

    For Category 2 for example I use.
    <a href="index.php?main_page=index&cPath=2"><?php echo zen_get_category_name(2, $_SESSION['languages_id']); ?></a>

    Thanks again

    D.C.

 

 

Similar Threads

  1. v153 Display text on products in certain category only
    By abcisme in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Mar 2015, 06:55 PM
  2. Display sidebox only on certain pages
    By delia in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 19 Apr 2012, 09:51 PM
  3. How to display some sitebox only on certain category or product page?
    By ericgu in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Mar 2009, 10:15 AM
  4. Display A Category On Certain Pages Only
    By J. Smith in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Feb 2008, 02:34 AM
  5. Symbol in front of category names only
    By MichellyAqua12 in forum Basic Configuration
    Replies: 3
    Last Post: 13 Jan 2007, 07:45 PM

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