Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Plugin Contributions
    0

    Default How do I change the URL for the Home link on my custom template?

    I set my store up as a link within my site, so the home page isn't the Zencart home page. This means I need to change the "Home" link in the header from mysite/zentcart to just mysite.com? Any help? The only post I've seen relating to this suggests adding links to that section, but those go to mysite.com/zencart/mysite.com and error out.

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: How do I change the URL for the Home link on my custom template

    If someone is shopping in your Zen Cart, clicks the home link and returns to the other part of your site, he/she will likely lose his/her session and any items in shopping cart.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

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

    Default Re: How do I change the URL for the Home link on my custom template

    If you have a link that goes to mysite.com/zencart/mysite.com, you have built it wrong. We would need to see the code you have used to tell how best to correct it.

    And having just one Home link that points out of your store is a poor idea, IMO. If you want that basic organization of a separate store within a site, make clear links for Store Home and Site Home, or the like.

  4. #4
    Join Date
    Jul 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: How do I change the URL for the Home link on my custom template

    Just to be clear, my site is set up with Zencart as a sub folder in my site. So to get to zencart it's mysite.com/zencart/. I set it up that way so you can click on "Product Store" to get to zencart. So when I'm in zencart I want the home link to go back to my site home. I understand what you are both saying about people losign what's in their cart if they leave zencart, so I've like to add do 2 things:
    a. add a "site home" link. (I tried to do this using another thread for adding links to the tpl_header.php file, but adding the coding just add my url to the backend of zencarts url...like this "mysite.com/zencart/myaddedurl/...
    b. change the "Home" link name currently on there to "Product Store Home".

    Thanks again for everyones help.

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

    Default Re: How do I change the URL for the Home link on my custom template

    To get the text "Product Store Home", edit
    /includes/languages/english/your_template/header.php
    Line #15 :
    define('HEADER_TITLE_CATALOG', 'Home');

    to read

    define('HEADER_TITLE_CATALOG', 'Product Store Home');

    and add a line

    define('HEADER_TITLE_SITE', 'Site Home');

    PHP Code:
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    The DIR_WS_CATALOG adds the subfolder name to the base URL, so stripping that will get your site home link. Add this above the previous code:
    PHP Code:
        <li><?php echo '<a href="' HTTP_SERVER '">'?><?php echo HEADER_TITLE_SITE?></a></li>

  6. #6
    Join Date
    Aug 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: How do I change the URL for the Home link on my custom template?

    Thanks Glenn,
    But where does the php code go for this change?

 

 

Similar Threads

  1. v151 How do I change the URL for my site to the new one for GC's Emails?
    By Bikerstuff in forum General Questions
    Replies: 6
    Last Post: 16 May 2014, 11:47 AM
  2. How do I change the name of the home link on my main page.
    By MountainWilliam in forum General Questions
    Replies: 1
    Last Post: 20 Dec 2010, 03:17 AM
  3. How do I change the home URL?
    By onejimb in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 31 May 2009, 02:40 AM
  4. How do I change the url for the "Home" links?
    By Phooie in forum General Questions
    Replies: 2
    Last Post: 9 Jul 2008, 09:46 PM
  5. How to change the 'HOME' link in the top header
    By Jude in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Oct 2007, 08:14 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