Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Link directly to specific product or page

    i think i understand what you are trying to do,i having a hard time to with my site, but i'm inching along, lol.
    here is wht i thank you got to do, go admin creat a catagory, add a product to that catagory, after you do that , just go to the product page on zen cart copy the url , go to your site get the text or pic of the product you want to link , creat the link and put the url you copied from the product page in zen cart, i did that for my links in my page out side zen cart,if you understand i hope it helps

  2. #2
    Join Date
    Oct 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Link directly to specific product or page

    all so, you would have to creat a catagory for it product or a sub catagory,and get url link from the product discriptom pages, that way if somebody clik on the product on your site page they go direct to the product discription page of zen, where they will see the add to cart bottom and all other services strat from your main page , hope it helps

  3. #3
    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

  4. #4
    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

  5. #5
    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

  6. #6
    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.

  7. #7
    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

 

 

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

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