Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding extra pages in the format of oscommerce


Guest

Recommended Posts

what i have is a few pages on most products. ie Features, Benefits, Specifications and Downloads. The way I am making the store at the moment is that they go off to these pages through the 'For more information, please visit this products' link.

 

Is there any way I can keep all this inside the Oscommerce store/format. Any ideas welcomed.

 

 

Thanks

Link to comment
Share on other sites

Here is some code I cut out real quick from another oscommerce page. Basically everything is here that you should need for a basic page. Just replace "BLAH BLAH BLAH" with your text. You will probably have to put in more table rows and such if you are doing anything interesting. This code will give you a blank page with the header, footer, left column and right column and a blank area in the middle to put your info. Name it "basic.php" or something like that and put it in catalog/basic.php and broswe it.

 

Matt

 

<?php

/*

 $Id: product_info.php,v 1.92 2003/02/14 05:51:21 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/



 require('includes/application_top.php');



 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

?>

<!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 //-->

   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

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

<tr height="40">BLAH BLAH BLAH</tr>

</table>

<!-- 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'); ?>

Link to comment
Share on other sites

Oh yeah, I almot forgot! In order to make this page come up when the user clicks on the 'For more information, please visit this products' link, you have to put this URL in the "Products URL:" input box in the product's information screen.

 

Matt

Link to comment
Share on other sites

thanks so much for this information on adding new pages... I have inforamational articles on history of certain apperal, etc.... I was using a regualr html page. now I dont have to make a new header and such...

 

thanks a million!

Link to comment
Share on other sites

Also look for a contribution called OSWrapper or something to that effect in the contributions section. You can just upload HTML pages into the program and it places your OSCommerce header, footer, and columns as usual. A great way to add multiple pages quickly....especially if you already have pages done in HTML.

Link to comment
Share on other sites

Oh great - thanks so much - it even has a file manager with in it.

I will surely get this installed on my site.

 

thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...