Zen Cart Logo
Forums / Basic Configuration / Add Page to More Info - addon issues

Add Page to More Info - addon issues

Locked

Views: 1,210

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
21 Jan 2010, 5:55 PM
#1
pwoens avatar

pwoens

New Zenner

Join Date:
Dec 2007
Posts:
63
Plugin Contributions:
0

Add Page to More Info - addon issues

Hello all. I just added the "Add Pages to More Info" module and got it all configured. When I edit page_5 or page_6 in "define pages editor" it appears to take and I can review it fine. HOWEVER ;) when I click on the link from the website I get page not found error? I have gone through all the php code and it is identical to what the module provided. I am on the latest version of ZEN. Any ideas on where I should look? thanks for any insight or direction

22 Jan 2010, 1:33 AM
#2
pwoens avatar

pwoens

New Zenner

Join Date:
Dec 2007
Posts:
63
Plugin Contributions:
0

Re: Add Page to More Info - addon issues

ive stepped through it 3 times now and have covered my tracks extensively and can not figure this out. Someone has to have some insight on to what I could be doing wrong here??

22 Jan 2010, 1:54 AM
#3
pwoens avatar

pwoens

New Zenner

Join Date:
Dec 2007
Posts:
63
Plugin Contributions:
0

Re: Add Page to More Info - addon issues

ok...im closer....i ran the sql statements and they now show up in the define page status section. Here's my last hurdle....

when I click on page 5 it goes to index.php?main_page=FILENAME_PAGE_5 .... if I change the URL to index.php?main_page=page_5 it works as it should. What file(s) do I need to modify that are calling FILENAME_PAGE_5 instead of page_5 as it should??

22 Jan 2010, 10:03 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Add Page to More Info - addon issues

The mapping from FILENAME_PAGE_5 to page5 is in includes/filenames.php.

22 Jan 2010, 2:58 PM
#5
pwoens avatar

pwoens

New Zenner

Join Date:
Dec 2007
Posts:
63
Plugin Contributions:
0

Re: Add Page to More Info - addon issues

swguy:

The mapping from FILENAME_PAGE_5 to page5 is in includes/filenames.php.

Here is my code from the filenames.php file. Page 2-4 work fine but 5-7 seem to path incorrectly?? the link from the website shows as index.php?main_page=FILENAME_PAGE_6 and gives me a page not found when you click on it. If I change the path in my browser addres bar to read index.php?main_page=page_6 it shows the page I edited.

define('FILENAME_DEFINE_PAGE_2', 'define_page_2');

define('FILENAME_DEFINE_PAGE_3', 'define_page_3');

define('FILENAME_DEFINE_PAGE_4', 'define_page_4');

define('FILENAME_DEFINE_PAGE_5', 'define_page_5');

define('FILENAME_DEFINE_PAGE_6', 'define_page_6');

define('FILENAME_DEFINE_PAGE_7', 'define_page_7');

thanks for your time!!

22 Jan 2010, 3:18 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Add Page to More Info - addon issues

There are two things to look for: the FILENAME_DEFINE_PAGE_5 constant which gives the name of the HTML file, and the FILENAME_PAGE_5 constant which gives the name of the page itself.

22 Jan 2010, 3:30 PM
#7
pwoens avatar

pwoens

New Zenner

Join Date:
Dec 2007
Posts:
63
Plugin Contributions:
0

Re: Add Page to More Info - addon issues

swguy:

There are two things to look for: the FILENAME_DEFINE_PAGE_5 constant which gives the name of the HTML file, and the FILENAME_PAGE_5 constant which gives the name of the page itself.

and the hint for the files to check that could specifically cause the issue I defined would be which ones in your opinion?