Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: Add Home link to category listing

    I actually have that CSS Menu thing installed, so this after adding that I added

    $content .= '<ul class="level1"><li><a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . HEADER_TITLE_CATALOG . '</a></li></ul>';


    above


    $content .= $menulist; // see the modules/sideboxes/YOURTEMPLATE/categories_css.php for this


    in modules/sideboxes/YOURTEMPLATE/categories_css.php for this

  2. #12
    Join Date
    Feb 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: Add Home link to category listing

    Quote Originally Posted by clydejones View Post
    Yes, it can be done as follows:

    in includes/templates/template_default/sideboxes
    Open tpl_categories.php and find the following line of code:

    PHP Code:
    for ($i=0;$i<sizeof($box_categories_array);$i++) { 
    JUST ABOVE this line add the following:

    PHP Code:
    $content .= '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'  HEADER_TITLE_CATALOG '</a>'
    Save the edited file to includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories.php and upload to your server.

    I would like to be able to do the same, but for some unknown reason the section you mentioned to search for
    Code:
    [FONT=Courier New]for ($i=0;$i<sizeof($box_categories_array);$i++) { [/FONT]
    is NOT in my includes/templates/template_default/sideboxes/ tpl_categories.php file.

    Any help, LOL.

    Thanks much in advance.

    RSprinkel
    RSprinkel

  3. #13
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Add Home link to category listing

    This is the beginning of the file in question.

    PHP Code:
    <?php
    /**
     * Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_categories.php 4162 2006-08-17 03:55:02Z ajeh $
     */
      
    $content "";
      
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">' "\n";
     [
    COLOR="Red"] for ($i=0;$i<sizeof($box_categories_array);$i++) {[/COLOR]
        switch(
    true) {
    The highlighted portion is the line of code you need to find.

    If your category sidebox is functioning correctly that line of code should be there. If not I'd suggest you upload a clean copy of this file.

  4. #14
    Join Date
    Feb 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: Add Home link to category listing

    Hi clydejones,

    Thanks for the info. Line was found.

    Sheesh I can not count on EditPlus2 to do searchs for me anymore .

    I use Edit Plus2 for everything involving code and this is the FIRST Time it has ever not found code for me.

    Sorry for the post. Guess I will manually have to start searching for things, LOL.
    RSprinkel

  5. #15
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Add Home link to category listing

    glad to help

  6. #16
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Add Home link to category listing

    I am having a similar problem and I think I am very closeto accomplishing a solution. We made a site for a client which is located here http://www.runwayclothesconsignment.com/
    and then added the shopping cart after completing all the links what I need is for the page at http://www.runwayclothesconsignment.com/ to look like
    http://www.runwayclothesconsignment....index&cPath=17
    so I have the pages made and just need to add

    about us
    info for shoppers
    info for customers
    contact us

    links to the catagories box inside the shopping cart. hope that all makes since thanks, Derrick

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. ADD TO CART on Category Listing in One Category only
    By ald0413 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 31 Jan 2011, 07:05 PM
  2. Home link in category box
    By McGill in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Apr 2010, 07:50 PM
  3. Remove / Hide category link from category image on home page
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 15 Mar 2010, 11:50 PM
  4. Show Specific Category on Index Listing or Add Entire Category to Featured Products.
    By devnut in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Oct 2008, 04:29 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