Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2013
    Posts
    12
    Plugin Contributions
    0

    Default Have a category link to an external link

    Hi all,

    I want to have one of the categories in my left sidebar link to an external page. specifically I'd like "scent guide" to be able to link to "www.earthlybody.com/scent-guide.html" Would anyone know which file I have to edit to do this? I've already looked at tpl_categories.php and I can't seem to find where this one link is.

    link to website: www.earthlybody.com/shop

    Any help would be greatly appreciated.

    Thanks

  2. #2
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Have a category link to an external link

    Quote Originally Posted by happangl7 View Post
    Hi all,

    I want to have one of the categories in my left sidebar link to an external page. specifically I'd like "scent guide" to be able to link to "www.earthlybody.com/scent-guide.html" Would anyone know which file I have to edit to do this? I've already looked at tpl_categories.php and I can't seem to find where this one link is.

    link to website: www.earthlybody.com/shop

    Any help would be greatly appreciated.

    Thanks
    It can be done, open:
    /includes/templates/YOUR_TEMPLATE_NAME/sideboxes/tpl_categories.php

    or copy tpl_categories.php from ( /includes/templates/template_default/sideboxes/ ) to above location

    Find:
    PHP Code:
            // skip if this is for the document box (==3)
          
    } else {
          
    $content .= '<a class="' $new_style '" href="' zen_href_link(FILENAME_DEFAULT$box_categories_array[$i]['path']) . '">'
    Replace with:
    PHP Code:
            // skip if this is for the document box (==3)
          
    } else {

    if (
    $box_categories_array[$i]['path'] == 'cPath=6') {
          
    $content .= '<a class="' $new_style '" href="' HTTP_SERVER DIR_WS_CATALOG 'scent-guide.html' '">';
          } else {
          
    $content .= '<a class="' $new_style '" href="' zen_href_link(FILENAME_DEFAULT$box_categories_array[$i]['path']) . '">';


    Good luck!

  3. #3
    Join Date
    Aug 2013
    Posts
    12
    Plugin Contributions
    0

    Default Re: Have a category link to an external link

    Quote Originally Posted by rbarbour View Post
    It can be done, open:
    /includes/templates/YOUR_TEMPLATE_NAME/sideboxes/tpl_categories.php

    or copy tpl_categories.php from ( /includes/templates/template_default/sideboxes/ ) to above location

    Find:
    PHP Code:
            // skip if this is for the document box (==3)
          
    } else {
          
    $content .= '<a class="' $new_style '" href="' zen_href_link(FILENAME_DEFAULT$box_categories_array[$i]['path']) . '">'
    Replace with:
    PHP Code:
            // skip if this is for the document box (==3)
          
    } else {

    if (
    $box_categories_array[$i]['path'] == 'cPath=6') {
          
    $content .= '<a class="' $new_style '" href="' HTTP_SERVER DIR_WS_CATALOG 'scent-guide.html' '">';
          } else {
          
    $content .= '<a class="' $new_style '" href="' zen_href_link(FILENAME_DEFAULT$box_categories_array[$i]['path']) . '">';


    Good luck!

    Thanks! That worked perfectly :)

  4. #4
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Have a category link to an external link

    Glad it worked for you!

 

 

Similar Threads

  1. v139f linksmanager - all links listed in my link category pages have suddenly disappeared
    By asiaradiosales in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 28 Feb 2012, 05:44 AM
  2. External Link Opens Internal - Not External - Page
    By missTish! in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Apr 2011, 01:18 AM
  3. Category or Product Link to External URL
    By jeskremer in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Jan 2010, 08:11 PM
  4. Replace the normal digital product download link with a different/external link
    By ballyc27 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Jul 2009, 05:31 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR