Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2007
    Posts
    20
    Plugin Contributions
    0

    Default Adding a link in categories box

    Hi There, I've been trying to add a link in categories side box to a new form on my Zen Cart. I've tried all the posts I can find on the forum but nothing seems to work.

    I'm using Zen Cart v1.3.9h with the PureGreen Free Zen Cart template and flyout menus mod.

    If anybody could point me in the right direction I'd be very grateful.

    Regards

    Hylt

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Adding a link in categories box

    Quote Originally Posted by Hylt View Post
    I'm using flyout menus mod.
    Hylt, are using the CSS Flyout Menu 1.3.9b?

    If so, you can add a link to it by adding a line like the below example to includes/templates/CUSTOM/sideboxes/tpl_categories_css.php

    This example uses an internal EZ-Page link.........yours may be different:

    Code:
    $content .= '<a href="index.php?main_page=page&id=15&chapter=1">My Form</a>';

    Admin Note: Could you move these posts (question and answer) to the Support for CSS Flyout Menu thread, please, as that's where it should be? Thank you.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Adding a link in categories box

    Edit: Wasn't quick enough for the real edit.

    So you can add some css styling to it, to make the link look the same as the others in the menu, do it like this, instead:

    Code:
    $content .= '<div class="form"><a href="index.php?main_page=page&id=15&chapter=1">My Form</a></div>';
    Then you can style that with some css like this:

    Code:
    #nav-cat .form {
       background: #6495ed;
    }
    #nav-cat .form a {
       color: #fff;
    }

    Hope this helps.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  4. #4
    Join Date
    Oct 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Adding a link in categories box

    Hi thanks for that, I was looking in the wrong place. Should have looked at the flyout menus to start with.

    Sorry about posting in the wrong place.

    Kindest Regards

    Hylt

  5. #5
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Adding a link in categories box

    Not a problem. Glad to help. Did that work as you needed it to?

    Ah, don't worry about it. Maybe one of the Dev's will move it in a little while. If not..............I guess it'll stay here, huh? :)
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. Categories box - moving it and adding 2nd layer categories to the list
    By crexis in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 19 Jul 2013, 02:58 PM
  2. Categories Box (Link)
    By wmorris in forum General Questions
    Replies: 6
    Last Post: 16 Oct 2008, 09:29 PM
  3. Adding another box exactly like Categories box? Thanks for help!
    By marshall in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 8 Jun 2007, 09:41 PM
  4. Adding a link to right hand box and adding pages....Please help
    By Ivum in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Mar 2007, 11:45 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