Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Very New - How do I add an About Us page


Guest

Recommended Posts

Very new to this. How do I add About Us & FAQ pages to the main page.

 

Is there a template php out there for these I can use and edit content to my specifications.

 

If so, where do I add it to (i.e. - catalog~english or somewhere else?) and what are the steps to adding it.

 

It may take me a while to get through this, but I will take it step by step. Anyone out there willing to help me through it, would be aprreciated. I would say my php knowledge level is low to moderate right now. But I do understand the concept it.

Link to comment
Share on other sites

If so, where do I add it to (i.e. - catalog~english or somewhere else?) and what are the steps to adding it.

 

Just create a page and add it to your 'catalog directory'. Put require('includes/application_top.php'); at the top just to load everything (Take a look at it, there is quite a bit). Then go to 'catalog/index.php' and see how much you want of it on your new page, copy what you need from this page and paste on your new one.

Might suggest:

 

<?php

require('includes/application_top.php');

?>

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

 

************YOUR CONTENT*****************

 

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

Then go to 'catalog/includes/boxes/information.php' and add your links to your new pages.

 

osC uses tables to structure the pages, so it makes it real fun to do this sort of thing!

 

I open the index page in my browser then right click, view source, select all, copy. Then paste all on a new page in my editor. Then edit accordingly.. After Im through and the tables are correct I will copy and paste my content onto my new page..

 

Have fun!

Lloyd

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...