Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I create a new page?


Barbie97

Recommended Posts

Posted

OK... I'm extremely stupid when it comes to php or any other kind of script... so I appoligize for the stupid question. :blush:

 

I'm trying to create a page called Terms_Conditions.php. So I thought I was smart, and basically copied the index.php file that was under the Includes/Languages/English/ folders. Well, when I tried to link to in that way, I get an error saying it's forbidden to view include files: See Error Below

http://elephantandcastle.biz/includes/languages/english/terms_conditions.php

 

So, I thought, ok... I'll just put that file (Terms_conditions.php) in the main folder. And that didn't work either, I just got a blank page.

 

Obviously, there is some scary script that the original index.php file or some other one has, that is allowing the index.php file to be viewed.

 

What is it? Where is it? Is this super easy and I'm just not getting it? HEEEEELLLLLP!!! I've been rackin' my brain for hours!!!

Posted

You have to do a few more things... one of them to make sure you changed the name of the actual php pages at the top of the file from what it was to what you want it to be, because you are using a copy.

 

ie shipping.php to terms_conditions.php

 

Skip the caps when you are naming your file, you can use the caps on the Define, as how you want it to appear.

 

Then there is the filename folder, you have to add it there too.

 

I believe there are a total of 5 pages or changes in total.

 

Here is a REALLY good contribution that helped me to create new pages:

 

http://www.oscommerce.info/kb/49

 

Print it out and then follow what you need off of it, and it will work for you.

 

And to give you this site as well.

 

If you ever screw up your files and need to get a copy of the originals, this is the site!

 

http://www.phpxref.com/xref/oscommerce/nav...s/index.html.gz

 

Hope that helps!

 

Many have helped me so I am trying to give back now :)

 

Sincerely

Char :)

Posted

Thanks so much Spinner... I'm going to look at the docs you sent and work on that today. I'm scared!!! But excited to learn something new again today! Everyday with this application is a learning experience for sure!! :) and I don't know the PHP language so... I feel like I'm working blind. It's all a hit or miss experience!

 

Thank you again!!!

Posted
Thanks so much Spinner... I'm going to look at the docs you sent and work on that today. I'm scared!!! But excited to learn something new again today! Everyday with this application is a learning experience for sure!! :) and I don't know the PHP language so... I feel like I'm working blind. It's all a hit or miss experience!

 

Thank you again!!!

 

You're welcome!

 

They are easy to follow cause I TOO am a newbie and was able to do it successfully a number of times.

 

Here is a little something else for you and anyone who wants to make it more difficult for people to take their graphics..

 

Go to the main folders of your files, where all the codes are kept like Index, Pop-up etc..... NOT the ones in /includes/english etc...

 

Look for the code that says <head>

 

Then customize what is here below and paste it in right under that code <head>

 

 

<script language="JavaScript"> <!--
// No rightclick script v.2.5
// [b]© 2007 YOUR STORE[/b]

var message="Sorry, that function is disabled.\n\nContents & Graphics Copyright ©[b]YOUR STORE NAME[/b]
\nOur work is NOT Public Domain, and should NOT be taken from this site."; 
// Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>

 

 

You can use this in every file to keep people from taking copies of your work or anything on your site..... but, there are ways around it, as always ;)

 

Going to put this up on the top of the board too.

 

Sincerely

Charlene :)

Posted

I'm confused about something... the link above is for creating new boxes. So does that mean that my new terms_conditions.php page will be a box along the side of the store front? Like the Catagories, Best Sellers, etc...

 

I basically just want a page that will still have all those boxes along the side (to be consistent) but just link to it from the navigation menu I created at the top.

 

So do you think the link you provided still the way to go? (sorry for another dumb question) And if so, do I create this new page in the includes/boxes folder or the includes/languages/english folder?

Posted

Simple solution is take shipping.php and modify it to newpage.php.

Now go into language folder and copy and paste language/englisl/shipping.php as newpage.php

 

Also if needed YOu need to add newpage.php in filename.php file.

 

Once done now YOu can change the text

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

I think I'm getting it now!!! I'm feeling all smart and dumb at the same time! ha! Weird feeling!

 

My customer wants the customers to view the site in English or Spanish. So does the site automatically convert what I'm typing on the page into Spanish? Or am I going to have to get somebody to translate what I need on the page in Spanish? Because I'm noticing that each of the shipping.php pages in the espanol folder is in Spanish. So I think I'm in trouble because I don't know Spanish! ha!

Posted

OK... Here's the scoop... and this might be helpful for others that come in...

 

Satish... I tried to create a links.php file name by following your intructions AND IT WORKED!!!!!!! I'm

 

SpinerC... I followed the instructions from the link, and it put my new page in the Information Box. AND, it has the page title in the box listed as BOX_INFORMATION_TERMS_CONDITIONS So I thought I would go in and change that in the information.php file, but that messed up the entire boxes text. All the text was gibberish. So I changed it back to the way it was and got the same thing. And I tried to locate the file just by typying out the URL in Firefox and got all kinds of errors. See here: http://elephantandcastle.biz/terms_conditions.php. So I think that these instructions are for adding a page into an existing box... but I'm still not sure why the name in the box was BOX_INFORMATION_TERMS_CONDITIONS. I haven't figured that one out yet....

 

But... all that to say THANK YOU BOTH FOR YOUR HELP!!! Don't know what I'd do with out you two! I learned alot about where things are while going thru these steps.

Archived

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

×
×
  • Create New...