Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2007
    Posts
    6
    Plugin Contributions
    0

    Default Trouble with new define pages

    Hey all,

    I've been searching for an answer to this problem for a while. I'm trying to customize the three define pages, Page_2, Page_3, and Page_4.

    I followed the instructions in the PDF found in this thread:
    http://www.zen-cart.com/forum/showth...t=48497&page=2

    Instead of creating new define pages, I simply edited the information for the pages, changing filenames and the code, using the Developer's Tool Kit to find instances of PAGE_2, PAGE_3, etc... One example -- I edited /includes/filenames.php:

    PHP Code:
    define('FILENAME_DEFINE_PAGE_2''define_page_2');
    define('FILENAME_PAGE_2''page_2'); 
    to:
    PHP Code:
    define('FILENAME_DEFINE_WATCH_MOVIES''define_watch_movies');
    define('FILENAME_WATCH_MOVIES''watch_movies'); 
    Here's the problem. When I click a link to my page, I see the page title, a back button, but no content:
    http://www.nr-productions.com/catalo...e=watch_movies

    http://www.nr-productions.com/catalo...etting_started

    I can see these pages, and the content of these pages in the define pages editor, but for the life of me, I can't get the content to appear on the website. Any ideas? I'll be happy to provide more information if needed

    I've run the PHP error reporting tool, but ZenCart isn't throwing errors... I'm kicking myself for not going ahead and making new pages from scratch. :-(

    Thanks!
    Nate

  2. #2
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Hey

    Try moving a copy of them up a level from your includes/languages/english/htm_includes/your_template to
    includes/languages/english/htm_includes. Zen Cart doesn't know to find them if they're not also in the default place.

    Edit: Maybe I should ask first if you made a template override folder there.
    Last edited by TShooters; 12 Feb 2009 at 06:07 AM.
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

  3. #3
    Join Date
    Oct 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Trouble with new define pages

    Yep, I've got a copy there, in an override folder. Still nothing...

    Is this a SQL issue? Do I also have to change the database in addition to the changes above?

    Nate

  4. #4
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Trouble with new define pages

    No..don't think you have to do anything with the database.
    You might download the About Us contribution, and compare to
    make sure you have your files in all the places in the /includes structure that they need to be.
    http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=182

    An easy way to add extra pages is with the Define Pages Generator. Snap..snap..upload..done.
    http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=804
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

  5. #5
    Join Date
    Oct 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Trouble with new define pages

    TShooters, I ask about the database because page_2, page_3, and page_4 were initially disabled in the 'Define Pages Status" page - they were set to "3".

    Here's the weird part. In 'Define Pages Status', the original page names are still shown: page_2, page_3, and page_4. The changes I've tried making are not visible.

    Interesting thing is - when I try disabling a page by setting it to "3", the modified page, say: "getting_started" is not changed or affected.

    I'm wondering if there is a disconnect between the admin and these modified pages. Maybe I can't turn them on through the admin, I have to do it in the DB?

    Your suggestion about the "About Us" mod, I initially used this to track down and modify the page_2, page_3, etc files. Afterwards I checked the PDF above to see if it mentioned files not found in the mod, but I seemed to hit them all.

    Any help would be greatly appreciated.
    Last edited by NateE; 12 Feb 2009 at 05:21 PM. Reason: Clarified a bit

  6. #6
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Trouble with new define pages

    Hooookay...try the suggestion in post # 7 here, and change
    Page_2, 3, 4 to your pages' names in includes/languages/your template/english.php.
    http://www.zen-cart.com/forum/showth...=rename+Page_2

    Don't think that will change anything in admin/config/define page status, though.
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

 

 

Similar Threads

  1. Trouble adding Poll HTML with Define Pages Editor
    By The Enchanted in forum General Questions
    Replies: 7
    Last Post: 13 Mar 2011, 07:20 PM
  2. Define Pages - How to define brand new page
    By hutch32804 in forum Customization from the Admin
    Replies: 4
    Last Post: 31 Oct 2009, 01:39 PM
  3. Problems with 3 new pages not dhowing their page define text
    By FoghornLeghorn in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Aug 2009, 02:49 PM
  4. Trouble Changing Define Pages
    By littledog in forum Basic Configuration
    Replies: 0
    Last Post: 23 Oct 2008, 03:51 AM
  5. Trouble using define pages editor
    By dbgoldsmith in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Sep 2008, 09:39 PM

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