Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello,

 

I would have implemented the 2.0 version of STS template. I want to add static pages to the template like say for example an "About Us" page that would just contain content for about us. Is there a way to do this through the template system?

 

Thanks!!!

Posted

Add this code to whereever you want it (you may need to enclose this in a table):

<a title="About Us" href="aboutus.html">About Us</a>

 

But before you do this, this subject came up not too long ago and one of the team members replied stating that you should not do this since you will lose the SID. Why not just add a regular php page so it doesn't conflict with the way OSC is designed?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

thanks for the input.

 

However I am interested in learning how to create the about us page in php. Is there a way to do this through the already contributed scripts?

 

Also my other dilema is: Say I eventually find out how to create a page like the About Us page - how will I then be able to keep a menu on oscommerce for pages that have content for users to read? Would the CMS contribution work for this kind of situation?

 

I would like to eventually have a menu that gives other information like about us, stories, and so on...

 

Thanks!

Posted

How I did it (no contributions used for this) is I simply duplicated shipping.php (because this is a simple page) whenever I wanted an additionnal "non shopping" page and edited it. So, for example, this would go as this:

 

- Duplicated catalog/shipping.php and renamed the copy to about.php

- Duplicated catalog/includes/languages/english/shipping.php (and any other language) and renamed the copy to about.php

- Edited catalog/includes/filenames.php and added a "define('FILENAME_ABOUT', 'about.php');".

- Obviously, edited the defines in the language about.php file appropriately.

 

This way, you keep the header/body/footer structure of your typical page in those extra "non shopping" pages.

 

I've also edited header.php to add my main menu there.

 

Also, actually put all files at the root level and not in a catalog/ folder.

 

Well, hope it helps,

 

Best regards,

 

Fabien

Posted
thanks for the input.

 

However I am interested in learning how to create the about us page in php. Is there a way to do this through the already contributed scripts?

 

Also my other dilema is: Say I eventually find out how to create a page like the About Us page - how will I then be able to keep a menu on oscommerce for pages that have content for users to read? Would the CMS contribution work for this kind of situation?

 

I would like to eventually have a menu that gives other information like about us, stories, and so on...

 

Thanks!

Ahh, I misunderstood what you were asking. Tsyrak has already explained how to do this. There is a contribution for it but it just duplicates his instructions. I'm not familar with the CMS contribution but there are many ways to add menus to your site. STS complicates things somewhat and is why it may not be supported in the next OSC version. In case you are not aware of it, the Information box already contains links for Shipping, Privacy, and so on. If you want to use that box, that is where one would normally put a link to an About page. However, menus are usually better due to their visibility IMO.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...