Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Best way to add new pages? (like "about us")


indigo11

Recommended Posts

Hi all.

I'm using STS and i would like to add new pages to Oscommerce, like "about us".

what's the best way to do it?

 

 

Thanks,

 

Manuel

 

P.S. I'm going to try this contribution called "new pages" but decided to post to see is anyone could say something.

Link to comment
Share on other sites

Thanks. :)

I just made the wiki "docsCatBoxGenLinks" and it works.

 

How could i create a $aboutus in the STS so the new link "about us" would appear?

 

Plus: Where should i add images in the about us page?

 

Thanks,

 

Manuel

Link to comment
Share on other sites

Thanks. :)

I just made the wiki "docsCatBoxGenLinks" and it works.

 

How could i create a $aboutus in the STS so the new link "about us" would appear?

 

Plus: Where should i add images in the about us page?

 

Thanks,

 

Manuel

Look in your sts_display_output.php file just above where you find this

 

/////////////////////////////////////////////

////// Create custom boxes

/////////////////////////////////////////////

 

You will see where the links are made for the template. Use one of the ones that are there and just subsitute the new info and you should be good to go.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

I see what you mean ozcsys but u still can't do it.

My page about_us.php works fine.

 

I added '$aboutus' to the sts_template.html

 

Then added the lines in

 

/////////////////////////////////////////////

////// Create custom boxes

/////////////////////////////////////////////

 

$template['aboutus'] = strip_unwanted_tags($sts_block['aboutus'], 'aboutus');

 

 

....

I tryed to add after line 185:

// Note: These values lifted from the stock /catalog/includes/header.php script's HTML

// catalogurl: url to catalog's home page

// catalog: link to catalog's home page

 

 

This:

 

$template['aboutus'] = '<a href="' . tep_href_link(FILENAME_ABOUT_US, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . '', HEADER_TITLE_ABOUT_US) . '</a>';

$template['urlaboutus'] = tep_href_link(FILENAME_ABOUT_US, '', 'SSL');

 

 

 

There is also some

 

/////////////////////////////////////////////

////// Display HTML

/////////////////////////////////////////////

 

 

Try to add:

 

echo $sts_block['aboutus'];

 

 

 

Nothing works...

 

Could you please help me out?

 

 

Thanks,

 

Manuel

Link to comment
Share on other sites

Ok the key there was above the custom boxes. You are not creating a box just a link to a page. Try this

 

$template['aboutus'] = '<a href=' . tep_href_link(FILENAME_ABOUT_US) . ' class="headerNavigation">' . BOX_INFORMATION_ABOUT_US . '</a>';

 

Then you will need to add this to your filenames.php file if you have not already done so.

 

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

 

Then add this to your english.php file in the information box section

 

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

 

I am not sure how you created the page but what I do is copy the conditions.php file and rename it. You also need to copy the one in the lang/english directory do you will have the definitions you need.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...