Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    May 2015
    Location
    United States
    Posts
    13
    Plugin Contributions
    0

    Default Adding a link to a terms page

    Hi everyone, I have a question about creating a link to a terms page.

    At the footer of my store I have:
    Copyright © 2015 My Online Store. Powered by Zen Cart | Privacy Notice |

    I wish to add a terms page to my footer and link 'Terms' to an EZpage called Terms & Conditions.
    Copyright © 2015 My Online Store Name. Powered by Zen Cart | Privacy Notice | Terms

    What would I need to do to create this link across all pages.


    Thanks,
    Rob

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Adding a link to a terms page

    Quote Originally Posted by bravo685 View Post
    Hi everyone, I have a question about creating a link to a terms page.

    At the footer of my store I have:
    Copyright © 2015 My Online Store. Powered by Zen Cart | Privacy Notice |

    I wish to add a terms page to my footer and link 'Terms' to an EZpage called Terms & Conditions.
    Copyright © 2015 My Online Store Name. Powered by Zen Cart | Privacy Notice | Terms

    What would I need to do to create this link across all pages.


    Thanks,
    Rob
    ZC has a ready-made (stock) Conditions of Use page - why won't you use that page and add a link to the footer?

  3. #3
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Adding a link to a terms page

    You can use this tutorial here:
    https://www.zen-cart.com/content.php...-to-an-ez-page

    Personally I have switched away from using EZ_pages and been creating defines pages instead, as I feel they are easier once they are added.

  4. #4
    Join Date
    May 2015
    Location
    United States
    Posts
    13
    Plugin Contributions
    0

    Default Re: Adding a link to a terms page

    Quote Originally Posted by frank18 View Post
    ZC has a ready-made (stock) Conditions of Use page - why won't you use that page and add a link to the footer?
    I would but the how to add the link is where I need the help.

  5. #5
    Join Date
    May 2015
    Location
    United States
    Posts
    13
    Plugin Contributions
    0

    Default Re: Adding a link to a terms page

    Quote Originally Posted by bislewl View Post
    You can use this tutorial here:
    https://www.zen-cart.com/content.php...-to-an-ez-page

    Personally I have switched away from using EZ_pages and been creating defines pages instead, as I feel they are easier once they are added.
    Thanks Bislewl,
    Can you tell me what php file needs to be edited to add the link?

    Thanks,
    Rob

  6. #6
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Adding a link to a terms page

    Quote Originally Posted by bravo685 View Post
    I would but the how to add the link is where I need the help.
    You can get some clues by looking into

    includes/languages/YOUR_TEMPLATE/english.php

    near the top of that file you should find some links such as the Copyright etc

  7. #7
    Join Date
    May 2015
    Location
    United States
    Posts
    13
    Plugin Contributions
    0

    Default Re: Adding a link to a terms page

    Quote Originally Posted by frank18 View Post
    You can get some clues by looking into

    includes/languages/YOUR_TEMPLATE/english.php

    near the top of that file you should find some links such as the Copyright etc
    Hi Frank18,
    Yep I did some digging and I believe I found what I was looking for but also discovered that it's possibly 2 issues combined.

    Originally I thought I was not able to locate the page I needed to edit. Specifically the php page that held the string and page reference I was hunting for. <a href="<?php echo zen_href_link(terms)?> "terms is a page created in EZpages using the Internal Link URL: index.php?main_page=terms.

    As I continued to dig into this I found that any page I create in EZpages does not open - 404 page not found. So I need to go back and see what I have missed when creating an EZpage.

  8. #8
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Adding a link to a terms page

    You can create define pages by duplicating the About Us mod, which can then be linked using URL:index.php?main_page=terms. Link can be placed in any menu or standalone.

  9. #9
    Join Date
    May 2015
    Location
    United States
    Posts
    13
    Plugin Contributions
    0

    Default Re: Adding a link to a terms page

    Quote Originally Posted by dw08gm View Post
    You can create define pages by duplicating the About Us mod, which can then be linked using URL:index.php?main_page=terms. Link can be placed in any menu or standalone.
    dwo8gm,
    I have been trying that option for a little while now. I am also running into issues with it not displaying. I downloaded the ZenCart Define Page Generator and put the files in their directories (shown below). The page now opens - header and sidebox is displayed but nothing else. No matter what text I enter into the file either manually or via the 'Define Page Editor' nothing is displayed. Just the header and left sidebox as my other pages. The footer is missing & center of the page (where the actual information would be) is not present meaning just the page background is shown there.

    I have tried editing both files in the html_includes directory but no luck.


    ZenCart Define Page Generator
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Files Generated:
    /includes/extra_datafiles/terms_filenames.php
    /includes/languages/english/extra_definitions/terms/terms.php
    /includes/languages/english/html_includes/define_terms.php
    /includes/languages/english/html_includes/terms/define_terms.php
    /includes/languages/english/terms/terms.php
    /includes/modules/pages/terms/header_php.php
    /includes/templates/terms/templates/tpl_terms_default.php


    After copying these files to your zencart installation directory, you can link to this page using the following link:
    http://yourdomain.com/zencart_direct...ain_page=terms

  10. #10
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Adding a link to a terms page

    Not sure what you have done, but your folder structure does not look right. Unless you really have a template called terms, you should remove all references to /terms/ in your folder structure, except for that in /includes/modules/pages/terms/header_php.php. You do not need to create a template for a single page, but if you run a template then the fileset will need to be distributed accordingly.

    Once you have edited the names and contents of each file to conform to your page set "terms", the main content of the page will be contained in /includes/languages/english/html_includes/YOUR_TEMPLATE/define_terms.php.

    I edit pages directly in a text editor (eg notepad++), where it is much easier to save/refresh/re-edit a page, rather than go through the admin define pages editor.

    I have not seen nor used the ZenCart Define Page Generator.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. adding in a 'home' and 'Page Top' link to bottom of product listing page
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jun 2010, 03:09 PM
  2. Adding a terms and conditions page
    By jbarrick in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Jul 2009, 05:08 PM
  3. adding terms and condition below product pages
    By vaige in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Apr 2009, 01:13 PM
  4. Adding Menu Link + EZ-Page
    By vidmarc in forum General Questions
    Replies: 3
    Last Post: 11 Jan 2008, 04:03 PM
  5. The ‘All Products ...’ link does not work / Adding a link on the Main Page
    By lancebotha in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Jul 2006, 01:03 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