Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2006
    Posts
    152
    Plugin Contributions
    1

    Default A question about Page_2 etc

    I have a couple of pages that I am putting in, and have replaced the page_2 etc with my new pages. I am missing a configuration step that I hope someone can help with:

    In languages\english\html_includes\


    I have renamed define_page_2 etc to my filenames. For example define_product-inquires.php

    In the english.php file I did this:


    define('BOX_INFORMATION_PAGE_2', 'Product Inquires');
    etc

    In includes\templates\my template name\templates
    I have renamed the template files like this:

    tpl_product-inquires_default.php

    In lanugages\english\
    I have renamed each filename like this:

    product-inquires.php


    In includes\filenames.php
    line 62: define('FILENAME_DEFINE_PAGE_2', 'define_product-inquiries');

    line 106: define('FILENAME_PAGE_2', 'product-inquiries');



    THE RESULT:

    I have the words showing up on my sitemap as a page, and looking for index.php?main_page=mypagename (but it doesn't find the page)

    And I also have it showing up correctly in the admin panel in the define pages editor, on the list of pages.

    So my only problem left is it not finding the page. Is this because of the filenames.php? Was I supposed to do this:

    line 62: define('FILENAME_DEFINE_PRODUCT-INQUIRIES', 'define_product-inquiries');

    line 106: define('FILENAME_PRODUCT-INQUIRIES', 'product-inquiries');

    Or is there more to it than that?

    Thanks for your help,

    Gin

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: A question about Page_2 etc

    If I got this correctly you have renamed tpl_page_2_default.php to tpl_product-inquires_default.php...

    Look at the defines (emphasis in red)

    In the english.php file I did this:

    define('BOX_INFORMATION_PAGE_2', 'Product Inquires');


    In includes\filenames.php
    line 62: define('FILENAME_DEFINE_PAGE_2', 'define_product-inquiries');

    line 106: define('FILENAME_PAGE_2', 'product-inquiries');
    Zen Cart can not now find page_2 I would add your page as
    Code:
    define('FILENAME_DEFINE_PRODUCT-INQUIRES', 'define_product-inquiries');
    and
    line 106: define('FILENAME_PRODUCT-INQUIRES', 'product-inquiries');
    And as I recall there are 4 places that this needs to be cross referenced and you can use the admin > tools > developers tool > and search for one that exists to find the instances/files that it appears in
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2006
    Posts
    152
    Plugin Contributions
    1

    Default Re: A question about Page_2 etc

    I'm still getting a page not found when I look for

    index.php?main_page=product-inquiries

    or

    index.php?main_page=links

    Looks like I'm still missing a step somewhere.

  4. #4
    Join Date
    Oct 2006
    Posts
    152
    Plugin Contributions
    1

    Default Re: A question about Page_2 etc

    I have also edited: includes/modules/links/header_php.php to this:

    PHP Code:
    // include template specific file name defines
    $define_page zen_get_file_directory(DIR_WS_LANGUAGES $_SESSION['language'] . '/html_includes/'FILENAME_DEFINE_LINKS'false');
    ?> 
    But I'm still having the same problem ... it isn't finding my page.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: A question about Page_2 etc

    index.php?main_page=links is not a valid link to my knowledge.

    You must use a valid link, if you can access this page through another avenue, load the page and view the link address in your browser bar. Use this as the link address, (ezpages creates the link I recall) but it will look on the order of
    http://www.domain.com/index.php?main_page=page&id=5&chapter=0
    where page&id can vary and there may or may not be a chapter designation.

    Did you search and find all page_2 references and then create/clone all of these for your product inquires entry? Part of what you did:
    Code:
    In languages\english\html_includes\
    
    I have renamed define_page_2 etc to my filenames. For example define_product-inquires.php
    
    In the english.php file I did this:
    
    define('BOX_INFORMATION_PAGE_2', 'Product Inquires');
    etc
    Where you changed the files for page 2 but left the "BOX_INFORMATION_PAGE_2" call and these files do not exist as you renamed them
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Oct 2006
    Posts
    152
    Plugin Contributions
    1

    Default Re: A question about Page_2 etc

    Quote Originally Posted by kobra View Post
    Did you search and find all page_2 references and then create/clone all of these for your product inquires entry?
    Yes ... initially I tried to leave as much of the code intact as possible.

    But I had thought from the post above that you said to change the first part of the DEFINES to make them like this:

    define('FILENAME_DEFINE_PRODUCT-INQUIRES', 'define_product-inquiries');
    Am I all messed up now?

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: A question about Page_2 etc

    I normally do not care what the browser indicates and therefore only change the last part or the text to be displayed. You had already stated that you had renamed certian files to product-inquiries. So the references to "BOX_INFORMATION_PAGE_2" needed to be changed also to be able to now find what you had renamed then to, as page_2 files no longer existed.

    And why I asked about insuring that you cloned "ALL" areas where page_2 was referenced where these could be BOX_INFORMATION_PAGE_2, FILENAME_DEFINE_PAGE_2, FILENAME_PAGE_2, and any other references and/or files
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Oct 2006
    Posts
    152
    Plugin Contributions
    1

    Default Re: A question about Page_2 etc

    I have searched, and there appears to only be IF statements that refer to page_2 etc.

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: A question about Page_2 etc

    I have searched, and there appears to only be IF statements that refer to page_2 etc.
    Did you clone all these statements where you found them and change "page_2" to "product-inquiries"?
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Oct 2006
    Posts
    152
    Plugin Contributions
    1

    Default Re: A question about Page_2 etc

    The IF statements are referring to whether they are turned on in the admin panel. Do I clone those ones too?

    Or delete the code even?

    In the admin > define pages status: page 2 etc are turned on. It still calls them page 2.

    I didn't change any if statements that I thought were drawing from that data.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Predefined Pages...page_2, page_3 etc.
    By g2ktcf in forum General Questions
    Replies: 8
    Last Post: 28 Dec 2011, 02:15 PM
  2. Creating new pages? Or duplicating page_2, page_3 etc.
    By renaissanceart in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Dec 2008, 05:57 PM
  3. Question about SSL, Godaddy hosting etc.
    By musicfreer in forum General Questions
    Replies: 5
    Last Post: 28 Jul 2008, 06:01 AM
  4. Question about modifyng model, price etc
    By DeadMn123 in forum General Questions
    Replies: 6
    Last Post: 10 Oct 2007, 09:08 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