Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding new pages


JosArtisan

Recommended Posts

Posted

I wonder if someone wouldn't mind telling me in detail how to add a new page to my site? I only have four and I need a new one! I kind of have a vague idea how, but not enough to do much good on my own.

Thanks in advance.

~Johanna~

Posted

Johanna,

 

First, adding a page is not difficult.

 

Question: Are we talking about adding a PHP file that would be linked to your other pages, such as "forum.php" or are we talking a HTML file such as "about_us.html" ?

 

We usually need a little more info to help with design issues.

 

Lastly, no question is ever a stupid question... We are all here to help and LEARN.

 

~~~Tapuahk

 

I wonder if someone wouldn't mind telling me in detail how to add a new page to my site? I only have four and I need a new one! I kind of have a vague idea how, but not enough to do much good on my own.

Thanks in advance.

~Johanna~

Posted

I guess it needs to be a php file. I have read the "add remove box pages" but that seemed to only change an existing page, not actually give me a whole new one.

Thanks.

~Johanna~

Posted
I guess it needs to be a php file. I have read the "add remove box pages" but that seemed to only change an existing page, not actually give me a whole new one.

Thanks.

~Johanna~

 

First you need to build the page _________.php...

 

 

What content you need etc....

 

You can use conditions.php as a template ... open it and save it as template.php

 

Now edit it .... Change CONDITIONS references to your new page title and then define that in your languages files...

 

You have a new page but it's just a copy of the conditions page...

 

Change content...

 

 

~~~Tapuahk

Posted
I guess it needs to be a php file. I have read the "add remove box pages" but that seemed to only change an existing page, not actually give me a whole new one.

Thanks.

~Johanna~

 

 

I'll use a new page I'll call forum.php for this example. :)

 

Using the template.php we created above. I open it and save it as forum.php

 

Now I'll change references to CONDITIONS to FORUM and DEFINE the new variables in all my language files. Create a file called forum.php in all my language folders which is a copy of conditions.php already in those folders.

 

About the middle of the page is TEXT_INFORMATION which is another variable defined in my new language/english/forum.php Change this to 'under construction'

 

Now in the catalog/forum.php I'll create an inline frame to my forum application using html code

or if my forum index is written in php include its content here.

 

Then edit includes/boxes/information.php to include my new file forum.php

 

~~~Tapuahk

Posted

Hmm, ok, so it looks like like all you do is add new files instead of messing with ones that are already there. So I did all of the above like this,

 

Uploaded a new file in catalogue called about_us.php

Included a listing of the new page in catalogue/includes/filenames.php

Made new about_us.php files in all my language folders,

listed the new files in the language files.

Included a listing in catalogue/includes/boxes/information.php

 

Is this correct? After doing all of the above, the new page does not show up in my site. Any ideas?

Thanks,

~Johanna~

Posted
Hmm, ok, so it looks like like all you do is add new files instead of messing with ones that are already there. So I did all of the above like this,

 

Uploaded a new file in catalogue called about_us.php

Included a listing of the new page in catalogue/includes/filenames.php

Made new about_us.php files in all my language folders,

listed the new files in the language files.

Included a listing in catalogue/includes/boxes/information.php

 

Is this correct? After doing all of the above, the new page does not show up in my site. Any ideas?

Thanks,

~Johanna~

 

If you just did the change on the information.php you should at least have a broken link in the information box on every page...

 

'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>');

 

Make sure you DEFINE FILENAME_ABOUT_US as "about_us.php" in filenames.php:

 

  define('FILENAME_ABOUT_US', 'about_us.php');

 

In languages/english.php add:

 

define('BOX_INFORMATION_ABOUT_US', 'About Us');

 

~~~Tapuahk

Posted

never paste oscid along with the url.

 

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
never paste oscid along with the url.

 

Satish

 

 

Sorry, I didn't know I did that,

 

Got any idea what is wrong with the page?

Posted
Sorry, I didn't know I did that,

 

Got any idea what is wrong with the page?

could not see it listed in your boxes. Did you do the edits in

catalog/includes/boxes/information.php

Archived

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

×
×
  • Create New...