Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

A question about Page_2 etc

Locked

Started by ginginca on 4 Dec 2006, 3:15 PM · Views: 3,823

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Dec 2006, 3:15 PM
#1
ginginca avatar

ginginca

Zen Follower

Join Date:
Oct 2006
Posts:
129
Plugin Contributions:
1

Post #1 by ginginca

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

Have I thanked you yet today? I LOVE ZEN!

Zen Cart Projects: 3 Buck Audio
Nash Jewellers
Enseka Solutions
Bagpipe Solutions

5 Dec 2006, 11:42 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

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

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

12 Dec 2006, 1:59 PM
#3
ginginca avatar

ginginca

Zen Follower

Join Date:
Oct 2006
Posts:
129
Plugin Contributions:
1

Post #3 by ginginca

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.

Have I thanked you yet today? I LOVE ZEN!

Zen Cart Projects: 3 Buck Audio
Nash Jewellers
Enseka Solutions
Bagpipe Solutions

12 Dec 2006, 2:07 PM
#4
ginginca avatar

ginginca

Zen Follower

Join Date:
Oct 2006
Posts:
129
Plugin Contributions:
1

Post #4 by ginginca

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

// 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.

Have I thanked you yet today? I LOVE ZEN!

Zen Cart Projects: 3 Buck Audio
Nash Jewellers
Enseka Solutions
Bagpipe Solutions

12 Dec 2006, 5:20 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #5 by kobra

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:

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

12 Dec 2006, 6:07 PM
#6
ginginca avatar

ginginca

Zen Follower

Join Date:
Oct 2006
Posts:
129
Plugin Contributions:
1

Post #6 by ginginca

kobra:

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?

Have I thanked you yet today? I LOVE ZEN!

Zen Cart Projects: 3 Buck Audio
Nash Jewellers
Enseka Solutions
Bagpipe Solutions

13 Dec 2006, 4:18 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #7 by kobra

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

14 Dec 2006, 3:57 PM
#8
ginginca avatar

ginginca

Zen Follower

Join Date:
Oct 2006
Posts:
129
Plugin Contributions:
1

Post #8 by ginginca

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

Have I thanked you yet today? I LOVE ZEN!

Zen Cart Projects: 3 Buck Audio
Nash Jewellers
Enseka Solutions
Bagpipe Solutions

14 Dec 2006, 4:34 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #9 by kobra

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

14 Dec 2006, 7:10 PM
#10
ginginca avatar

ginginca

Zen Follower

Join Date:
Oct 2006
Posts:
129
Plugin Contributions:
1

Post #10 by ginginca

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.

Have I thanked you yet today? I LOVE ZEN!

Zen Cart Projects: 3 Buck Audio
Nash Jewellers
Enseka Solutions
Bagpipe Solutions

14 Dec 2006, 10:17 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #11 by kobra

You have to clone all of these if you want to be able to control from the admin

And I hope that you are using the override system.

Zen-Venom Get Bitten