Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Oct 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Link directly to specific product or page

    now , jettrue you look like you know a lot about zen cart, i'm wundering if is there a way for me to change the "home link" on the the header of the main index page of zen to point to a page outside zen, wich is my html site home page , if any one have any idea please help, i looked all over, can't finde a way to do it

  2. #12
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Link directly to specific product or page

    Well, I don't know much about zencart, but I do know how to do that.
    Go to Incudes>Modules>Sideboxes>CustomFolder>information.php
    Custom Folder is the folder name of your custom template if you have one.
    replace the code for the home link with this
    if (DEFINE_MAINPAGE_STATUS <= 1) {
    $information[] = '<a href="http://www.discwritecd.com/index.htm">' . "Home" . '</a>';
    }

    Replace my website URL with yours and you can add as many links as you like that way. Hope that helps, John

  3. #13
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Link directly to specific product or page

    One more thing. To add a link that isn't already listed in the information sidebox just add the link like this in the order that you want it to appear

    $information[] = '<a href="http://www.discwritecd.com/about.html">About Us</a>';

    That's all you need to do to add an additional link to the information sidebox.
    Make sure to put the information.php file in a custom folder so it doesn't get overwritten if you upgrade zencart. John

  4. #14
    Join Date
    Oct 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Link directly to specific product or page

    thakyou, it does help, avery thang i learn here helps, still too fresh in the zen lol.
    But by what you told me , this link would be in the information side box, i'm trying to change the "home" link in the very top of just the index page "the very first page of the zcart.
    But thank you for taking the time to help.

  5. #15
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Link directly to specific product or page

    To change the link at the top of the page you edit the tpl_header.php file

    includes>templates>custom folder>common>tpl_header.php

    Line 73 looks like this:
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>

    If you replace it with this:
    <li><a href="http://www.yourwebsite.com/index.htm"> Home </a></li>

    And change "www.yourwebsite.com" to your domain name it will open your home page.
    You might also want to modify tpl_footer.php the same way, so the link at the bottom of the page will be the same.

    **Disclaimer! I am not a php programmer. I just fool around with this stuff until I get it to do what I want. You might want to talk to someone who really knows this stuff before trying this. There may be other files that need to be modified as well. John

  6. #16
    Join Date
    Oct 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Link directly to specific product or page

    Man, I tryied doing that before, but i didn't do it right, thank you so much, it worked perfect , just the way I wanted to do , thank you again.......

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v154 Insert attributes directly from product's page
    By alex369 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 8 Sep 2015, 02:08 PM
  2. How to display lightbox directly from Product listing? (no product detail page)
    By y2caye in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Jan 2010, 03:38 AM
  3. Category link skips directly to product
    By bhakans in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 21 Oct 2008, 11:07 AM
  4. Placing a link directly on the Main Page
    By wwwursa in forum General Questions
    Replies: 6
    Last Post: 1 Aug 2008, 12:45 PM
  5. product on category directly show on main page
    By taguchi_isara in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Nov 2007, 05:09 AM

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