Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add New Pages to 2.3.1


Recommended Posts

Hi,

 

I have been trying different things for the last couple of hours and I am lost as I can not figure out what I am doing wrong. I have made a new information box called "Resources" and now I am following the forum information to add new pages from;

 

http://www.oscommerce.com/forums/topic/375815-add-new-page-in-v231-which-actually-works/

 

 

I have completed all steps:

 

1. In /catalog/includes/filenames.php before the closing PHP tag add this line:

 

define('FILENAME_COLOR_CHART', 'color_chart.php');

 

2. Open /catalog/includes/languages/english/modules/boxes/bm_information.php and insert this line before the closing PHP tag:

 

define('MODULE_BOXES_RESOURCES_BOX_COLOR_CHART', 'Color Chart');

 

3. Open /catalog/includes/modules/boxes/bm_information.php and find this code:

 

' <a href="' . tep_href_link(FILENAME_COLOR_CHART) . '">' . MODULE_BOXES_RESOURCES_BOX_COLOR_CHART . '</a>' .

 

 

uploaded the following my color chart which I called " color_chart.php " to both

 

catalog/includes/languages/english/about_us.php & catalog/about_us.php

 

 

Can someone please tell me what I am doing wrong. Am I missing something.

 

Any help would be greatly appreciated.

 

Thank you in advance,

Tracie

Link to comment
Share on other sites

1. In /catalog/includes/filenames.php before the closing PHP tag add this line:[/u]

 

define('FILENAME_COLOR_CHART', 'color_chart.php');

The file on the server doesn't reflect that change.

 

When you get that fixed your color_chart.php file needs work.

 

When accessed it yields:

 

Parse error: syntax error, unexpected T_STRING in /home/sunshyn1/public_html/color_chart.php on line 1

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Hi Jim,

 

 

Thank you so much for your quick reply.

 

I am really lost now. I thought I followed everything to a T but obviously not. All I want to do is put a page up that has a list of colors & pictures. It was a pdf page but I changed it to a php as I see no contributions/add ons for this version being able to use pdf files.

 

 

The file on the server doesn't reflect that change.

 

When you get that fixed your color_chart.php file needs work.

 

When accessed it yields:

 

 

I wll delete all entries and re-do but you mentioned that my color_chart.php needs work but I am not sure what that means.

 

Please advise if you have the time.

 

Thank you again in advance Jim for any assistance you may be able to provide.

 

Tracie

Link to comment
Share on other sites

The way I can tell you haven't successfully completed the 1st step is the source code on the site says:

 

<a href="http://YOUR_DOMAIN.com/FILENAME_COLOR_CHART">Color Chart</a>

I can't help with the color_chart.php code unless you post it.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Hi Jim,

 

I will re do everything now and see if it works.

 

Here is the color chart I am referring to. I have saved this as a php file. I hope this is what you meant.

 

http://customerarea.create-your-style.com/Portal.Node/portal?gentics.rs=content&gentics.rsid=10008.185674

 

Thank you kindly,

Tracie

Link to comment
Share on other sites

Nothing at that link that's going to help either of us.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Hi Jim,

 

Ok I don't know what to do or what I need. I can not find anything in any forums or google,etc.

 

The link I provided you with has the color charts that I need to add to my website. I am a authorized dealer for this company and there is a lot of information for me to add to the site but I do not know how to include a pdf file.

 

There was a contribution or add on but it is for a early version of oscommerce and can not be used with the 2.3.1 format.

 

 

I have download 2 of the pdf files and they look like this

 

1. ColorChart_2011_2012pdf

2. CYS_ColorChart_Pearls_SS2012.pdf

 

Thank you so much for your time and I hope this is what you are looking for :blush:

 

Tracie

Link to comment
Share on other sites

Looks to me like you've trashed the whole "add a new page" code so I don't have a clue what you want now either.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

If you have copied a page and re named it, have you changed the two instances of the old file name in the new page.

 

id you have copied the conditions page, and wish to create an about us page near the top of the original page you have

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS));

 

Which should be alterd to

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US));

 

This is not mentioned in the instructions that i read above.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

Hi Steve,

 

Thank you for the information.

 

No, I am not using a existing page ( ie: conditions.php )

 

I created a new information box and would like to do the following however most are pdf files not php.

 

Resources (name of box)

 

Bead Colors - be able to click on bead colors and be taken to a page that has a color chart (pdf page )

Pearl Colors - same as above

Finishes - information that I typed up on note pad and saved as a php file

Birthstones - pdf file

Sizes - pdf file

 

I am trying to add a pdf page.

 

I have also tried adding them as htm files but that isn't working either. It just gives me a blank page with a box with the codes. You can see what I mean if you follow this link;

 

Color Chart

 

The older version had steps on how to do this but 2.3.1 does not have anything.

 

I am so sorry. I am sure it is not as hard as I think it is but I just don't get it and I have been endlessly looking for answers everywhere with no luck.

 

Any help would be greatly appreciated.

 

Thank you in advance,

Tracie

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...