Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I get Define Pages to recognize a new page for the Information Box?

How do I get Define Pages to recognize a new page for the Information Box?

Locked

Views: 2,804

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
9 Nov 2007, 2:54 AM
#1
scootaman avatar

scootaman

New Zenner

Join Date:
Nov 2007
Posts:
74
Plugin Contributions:
0

How do I get Define Pages to recognize a new page for the Information Box?

Hello

I want to add a Warranty page to the side Information box. I've create the pages listed below and my warranty page shows up in the Define Pages Editor where I was able to add my information. The page, however, does not show in Configuration/Define Page Status. I added it in to the information.php file to show in the Information box but the page is not working. The link looks wrong and when I click it I get the page not found error. What do I need to do to make this work? I don't know what other files I need to do or how to get the database php to recognize my file.

public_html/includes/languages/english/html_includes/define_conditions.php
includes/templates/template_default/templates/tpl_warranty_default.php

Shipping & Returns
Privacy Notice
Conditions of Use
Contact Us
BOX_INFORMATION_WARRANTY
Site Map
Gift Certificate FAQ
Discount Coupons
Newsletter Unsubscribe

9 Nov 2007, 1:13 PM
#3
scootaman avatar

scootaman

New Zenner

Join Date:
Nov 2007
Posts:
74
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

TShooters:

Suggest you download the About Us Page contribution here:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=182

so you can see the files/file structure to add a new page. :thumbsup:

OK, I've downloaded the About Us Page and followed the directions but I am still having a problem. The name "Warranty" is not showing up correctly in the information box. The link works correctly and it opens my Warranty page, I just cannot figure out why it will not show correctly. What is shows in the Information box is: BOX_INFORMATION_WARRANTY when it should show Warranty

I have the warranty.php file called for in languages/english/extra_definitions/ My_Template

The code in that file reads:

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: about_us.php v1.3 $ */ // this is used to display the text link in the "information" or other sidebox define('BOX_INFORMATION_WARRANTY', 'Warranty'); ?>

It appears to me that this information is not being read. Is there something I am missing?

Thanks

9 Nov 2007, 3:37 PM
#4
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: How do I get Define Pages to recognize a new page for the Information Box?

Are you using the About Us Page contribution for your Warranty page?
You might check to make sure that you changed all instances of about us in the
files to Warranty, and that all files were uploaded. When changing the words, a single quote ' may have accidently been omitted. An easy way to check would be to
used the Developers Tool Kit in Admin/Tools...last on the bottom...search the
Catalog for BOX_INFORMATION_WARRANTY, and it should bring up the line
and what file it's in, like this:

define('BOX_INFORMATION_WARRANTY', 'Warranty');

9 Nov 2007, 4:21 PM
#5
scootaman avatar

scootaman

New Zenner

Join Date:
Nov 2007
Posts:
74
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

TShooters,

Thanks for your help. I believe I have it fixed. I copied the warranty.php file that had the define statement from languages/english/extra_definitions/My_template to the extra_definitions folder. Once I dropped it in that folder, the name started showing correctly. That's not the location listed in the About Me down load, but it works there.:D

9 Nov 2007, 4:41 PM
#6
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: How do I get Define Pages to recognize a new page for the Information Box?

:clap: Glad you got it working!

Are your template overrides folders all named exactly the same? It's important
that they are so your overrides will work correctly.

9 Nov 2007, 4:53 PM
#7
scootaman avatar

scootaman

New Zenner

Join Date:
Nov 2007
Posts:
74
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

TShooters:

:clap: Glad you got it working!

Are your template overrides folders all named exactly the same? It's important
that they are so your overrides will work correctly.

As far as I can see they are the same. I copied the template name from the file folder and pasted it in to be sure it was the same. I'll double check again, but its all working now.

10 Nov 2007, 11:50 PM
#8
gtcman avatar

gtcman

New Zenner

Join Date:
Aug 2007
Posts:
35
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

Please help, my eyes are getting sore from reading and still can't find the answer to my problem. okay i uploaded the About Us files and it seem to be working fine, now what i want to do is add another link "Page 1" to the more information box, i have renamed all the files that referenced "about us" to "page 1" and still something is missing! i get a page not found error. don't mind the page 5 at this point, i just need help as to why it says page not found when i click on the Page 1 link in the More Information Box. please help. Thanks

Link,

http://gtc-hosting.com/cart2/

11 Nov 2007, 12:17 AM
#9
scootaman avatar

scootaman

New Zenner

Join Date:
Nov 2007
Posts:
74
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

gtcman:

Please help, my eyes are getting sore from reading and still can't find the answer to my problem. okay i uploaded the About Us files and it seem to be working fine, now what i want to do is add another link "Page 1" to the more information box, i have renamed all the files that referenced "about us" to "page 1" and still something is missing! i get a page not found error. don't mind the page 5 at this point, i just need help as to why it says page not found when i click on the Page 1 link in the More Information Box. please help. Thanks

Link,

Have you seen the tutorial here? https://www.zen-cart.com/tutorials/index.php?article=242

I don't know if that would help or not.

11 Nov 2007, 12:36 AM
#10
gtcman avatar

gtcman

New Zenner

Join Date:
Aug 2007
Posts:
35
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

Thanks Scootaman for the reply, thats what i have but still can't find the page! see photo,

11 Nov 2007, 1:00 AM
#11
scootaman avatar

scootaman

New Zenner

Join Date:
Nov 2007
Posts:
74
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

gtcman:

Please help, my eyes are getting sore from reading and still can't find the answer to my problem. okay i uploaded the About Us files and it seem to be working fine, now what i want to do is add another link "Page 1" to the more information box, i have renamed all the files that referenced "about us" to "page 1" and still something is missing! i get a page not found error. don't mind the page 5 at this point, i just need help as to why it says page not found when i click on the Page 1 link in the More Information Box. please help. Thanks

Link,

http://gtc-hosting.com/cart2/

I am just starting to work on the More Information Box. I followed the directions in this tutorial
URL="https://www.zen-cart.com/tutorials/index.php?article=242"][/URL]
to make a Links page. The directions changed the heading title and crumb bar trail but not the name in the More Information Box. I found where page 2 was defined in the english.php file. For ('BOX_INFORMATION_PAGE_2', 'Page 2') I change it to ('BOX_INFORMATION_PAGE_2', 'links');

This worked. Links shows up in my More Information Box and the Title on the page when I click on it read Links. I didn't have to rename any files. I the Define Pages it still is page_2.

I don't know if this is the best way to do that changes but it was very easy and worked. The page shows correctly when you click on the site map.

11 Nov 2007, 1:13 AM
#12
gtcman avatar

gtcman

New Zenner

Join Date:
Aug 2007
Posts:
35
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

Thank you Scootaman for your time, it appears i missed renaming some of the files, so followed the instructions given for page 5 and it worked. thanks again.

11 Nov 2007, 1:24 AM
#13
scootaman avatar

scootaman

New Zenner

Join Date:
Nov 2007
Posts:
74
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

gtcman:

Thanks Scootaman for the reply, thats what i have but still can't find the page! see photo,

I'm not sure why you would be getting a Page Not Found error beyond the normal suspects of a miss spelling or small code error like one (, ) comma missing in the code. That has happened to me a lot. One missing comma can be easily over looked. But that doesn't help when your eyes are already sore.

11 Nov 2007, 1:26 AM
#14
scootaman avatar

scootaman

New Zenner

Join Date:
Nov 2007
Posts:
74
Plugin Contributions:
0

Re: How do I get Define Pages to recognize a new page for the Information Box?

gtcman:

Thank you Scootaman for your time, it appears i missed renaming some of the files, so followed the instructions given for page 5 and it worked. thanks again.

:clap: Glad it worked!