Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    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
    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.
    dw08gm,

    Thanks for your help on this. I am one step closer I now see a single row for text with the following word 'terms'.
    Editing the file in Define Pages Editor changes nothing. I also made the changes to the directory structure you suggested but no luck either.

    So ... I think I will delete everything I did and just copy a different page/rename it and start over. It's odd that I see it in the Define Page editor but page content is not showing.

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

    Default Re: Adding a link to a terms page

    Just an update on where I stand with this.

    I have removed all previous files and started over. I copied a currently working page and it's directory struct just to see what would happen. Renamed the copy to terms and I get the same results. Page loads only the header, footer and sidebox with the center of the page empty. Even with the new files matching the directory location and structure of a working page - just renamed. Could I be getting into file permission issues? Double checking file permissions I have '604' for all the newly copied files (same as the orig file).

    Here are the locations the copied file exists. Again it's just a copy of a functioning page.

    Store\includes\modules\pages\terms\header_php.php
    Store\includes\templates\template_default\templates\tpl_terms_default.php
    Store\includes\languages\english\html_includes\classic\define_ terms.php
    Store\includes\languages\english\html_includes\define_ terms.php
    Store\includes\languages\english\ terms.php


    What am I missing guys?? I didn't think it would be this difficult to add a new page. I would of at least expect the copied page to reference the original named files due to php code in each copied file not being altered. I see the page content getting changed in the Define Page Editor & it differs from the originally copied page. So I do know I am editing the correct page content.

  3. #13
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Adding a link to a terms page

    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Adding a link to a terms page

    As I mentioned earlier in this thread, the simplest way is to use the existing define page 'Conditions of Use' and change the first line in your includes/languages/YOUR_TEMPLATE/english.php file to read like this:

    PHP Code:
      define('FOOTER_TEXT_BODY''Copyright &copy; ' date('Y') . ' <a href="' zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' STORE_NAME '</a>.  Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>.  <a href="index.php?main_page=conditions">Terms &amp; Conditions</a>'); 
    Done and dusted - no fuss.

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

    Default Re: Adding a link to a terms page

    Quote Originally Posted by bravo685 View Post
    Just an update on where I stand with this.

    I have removed all previous files and started over. I copied a currently working page and it's directory struct just to see what would happen. Renamed the copy to terms and I get the same results. Page loads only the header, footer and sidebox with the center of the page empty. Even with the new files matching the directory location and structure of a working page - just renamed. Could I be getting into file permission issues? Double checking file permissions I have '604' for all the newly copied files (same as the orig file).

    Here are the locations the copied file exists. Again it's just a copy of a functioning page.

    Store\includes\modules\pages\terms\header_php.php
    Store\includes\templates\template_default\templates\tpl_terms_default.php
    Store\includes\languages\english\html_includes\classic\define_ terms.php
    Store\includes\languages\english\html_includes\define_ terms.php
    Store\includes\languages\english\ terms.php


    What am I missing guys?? I didn't think it would be this difficult to add a new page. I would of at least expect the copied page to reference the original named files due to php code in each copied file not being altered. I see the page content getting changed in the Define Page Editor & it differs from the originally copied page. So I do know I am editing the correct page content.

    It is not difficult at all, but does require an understanding of the template overrides system and attention to detail.

    If you are using the classic template, certain files must be placed in classic folders, ie
    Store\includes\templates\classic\templates\tpl_terms_default.php
    Store\includes\languages\english\classic\terms.php (the space between \ and terms needs to be removed.)

    Also
    Store\includes\extra_datafiles\terms_filenames.php is missing from your latest list. This is needed to define the fileset.

    You may have other problems not related to the about us mod, that should be apparent by you comparing your fileset with the default fileset.

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

    Default Re: Adding a link to a terms page

    Quote Originally Posted by frank18 View Post
    As I mentioned earlier in this thread, the simplest way is to use the existing define page 'Conditions of Use' and change the first line in your includes/languages/YOUR_TEMPLATE/english.php file to read like this:

    PHP Code:
      define('FOOTER_TEXT_BODY''Copyright © ' date('Y') . ' <a href="' zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' STORE_NAME '</a>.  Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>.  <a href="index.php?main_page=conditions">Terms & Conditions</a>'); 
    Done and dusted - no fuss.

    Yes, but the about us mod also serves as a basis for the creation of diverse other pages, so is a very useful mod to have.

 

 
Page 2 of 2 FirstFirst 12

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