Results 1 to 10 of 26

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Location
    USA
    Posts
    76
    Plugin Contributions
    0

    help question How to add new link to categories sidebox?

    I am wanting to add a new link with an arrow image for "FREE PRODUCTS" in the categories sidebox just above the links for "ALL" "FEATURED" and "NEW" products. I can't seem to find this info. anywhere online. See categories sidebox on my site www.moebow.com to see what I'm talking about..
    Owner / Admin
    http://www.moebow.com

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add new link to categories sidebox

    If you use Categories Dressing for your categories sidebox, you can add a "heading" above the All Products link with HTML content that will look and act exactly the same as the other links.

    In this case, the "similar threads" at the bottom of the page aren't helpful, but you could perhaps use the "Categories and EZ-Pages in same sidebox" mod in Free Addons, or else in /includes/templates/your_template/sideboxes/tpl_categories.php you could clone the All Products code and strip/alter it for your desired link.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add new link to categories sidebox

    You might like to see how I set up a similar layout on my jewelry site.

  4. #4
    Join Date
    Dec 2011
    Location
    USA
    Posts
    76
    Plugin Contributions
    0

    Default Re: How to add new link to categories sidebox

    Thank you kindly sir. I will add the code in the file. Your jewelry site is really good. I especially like the golden bar image you have to the side of your left column.
    Owner / Admin
    http://www.moebow.com

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add new link to categories sidebox

    Thanks - that was one of my first forays into the wonders of CSS. The top of that border is a background image for one sidebox-type element, the center is a repeating background for #navColumnOneWrapper, and the bottom is a background for the last sidebox. This makes it infinitely adjustable in height. I was quite proud of it at the time:)

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add new link to categories sidebox

    Huh... I just realized that my post #3 above was actually a response to another thread, which I thought I had not actually posted... oh well, at least it's not completely incongruous here:)

  7. #7
    Join Date
    Dec 2011
    Location
    USA
    Posts
    76
    Plugin Contributions
    0

    Default Re: How to add new link to categories sidebox

    Quote Originally Posted by gjh42 View Post
    If you use Categories Dressing for your categories sidebox, you can add a "heading" above the All Products link with HTML content that will look and act exactly the same as the other links.

    In this case, the "similar threads" at the bottom of the page aren't helpful, but you could perhaps use the "Categories and EZ-Pages in same sidebox" mod in Free Addons, or else in /includes/templates/your_template/sideboxes/tpl_categories.php you could clone the All Products code and strip/alter it for your desired link.
    So I tried editing the tpl_categories file using your code at http://www.zen-cart.com/forum/showthread.php?t=105690 and it's not doing a thing. Nothing showing up at all on my site. What could I be doing wrong?

    Here is how that section of my tpl_categories now looks :

    // display a separator between categories and links

    if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {

    $content .= '<hr id="catBoxDivider" />' . "\n";

    }

    echo '<a href="http://www.moebow.com/index.php?main_page=index&cPath=25_60">FREE Products</a><br />'. "\n";
    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {

    $show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");

    if ($show_this->RecordCount() > 0) {

    $content .= '<a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . '<br />' . "\n";

    }

    }

    if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
    Owner / Admin
    http://www.moebow.com

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add new link to categories sidebox

    The code you show is based on the stock tpl_categories.php, but your site is using betterCategories, which has different source code.

    Are you editing /includes/templates/template_default/sideboxes/tpl_categories.php? That will never be used; you need to add your code to /includes/templates/bookshelf/sideboxes/tpl_categories.php.

  9. #9
    Join Date
    Dec 2011
    Location
    USA
    Posts
    76
    Plugin Contributions
    0

    Default Re: How to add new link to categories sidebox

    I actually edited both. So I need to edit the bettercategories file?
    Owner / Admin
    http://www.moebow.com

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add new link to categories sidebox

    Yes. You should never touch any file in /template_default/; instead, copy it to the same folder in /your_template/ and edit the copy. Since there is already a copy, edit that.

 

 

Similar Threads

  1. v139h How to add new menu item with submenu in sidebox with static link..
    By snk060 in forum General Questions
    Replies: 9
    Last Post: 25 Nov 2013, 02:47 PM
  2. How to add new link in an exisisting sidebox?
    By navido in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Mar 2009, 12:16 AM
  3. How can I add a link into the categories sidebox?
    By PaulRiedel in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Jan 2008, 10:09 AM
  4. How do I add a new link to sidebox?
    By windrising in forum Basic Configuration
    Replies: 1
    Last Post: 16 Feb 2007, 10:42 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