Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello!

 

I wish to solve this issue asap because of my deadline(time left 12hours) :)

So i installed Extra Info pages and it works just fine, admin panel (creating, editing, removing pages etc.) ok. But template of extra pages is strange.

 

Here is my shop: http://www.i4.fi/automatrix/extra_info_pages.php?pages_id=3

 

as you can guess i would like to have extra pages content as normal.

 

Thank you for advance!

 

ps. here is my extra_info_pages.php

 

<?php

/*

$infopageid: extra_info_pages.php, v4.50 2003/06/05 23:26:22 hpdl Exp $

 

contribution is : Extra pages-info box w- admin

http://www.oscommerce.com/community/contributions,2021'>http://www.oscommerce.com/community/contributions,2021

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

 

 

$infopageid = (int)$HTTP_GET_VARS['pages_id'];

 

 

 

$page_query = tep_db_query("select

p.pages_id,

p.status,

s.pages_title,

s.pages_html_text

from

" . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id

where

s.language_id = '" . (int)$languages_id . "'

and

p.pages_id = $infopageid");

 

 

 

$page_check = tep_db_fetch_array($page_query);

$breadcrumb->add($page_check[pages_title], tep_href_link('extra_info_pages.php?pages_id=' . $infopageid));

 

?>

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

<tr>

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

<tr>

<td class="pageHeading"><?php echo $page_check[pages_title]; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main" align="left"><?php echo stripslashes("$page_check[pages_html_text]"); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

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

Posted

Kim,

 

The contributions on this site are for STANDARD osCommerce installations and are not intended for customer template integration. However, usually with a some 'tweaking' of the contribution you can get them to work.

 

You are going to have to compare the information page layout to that of one of your customer template pages (privacy,shipping, conditions) and determine the code that needs to be changed to integrate that new contribution.

 

 

 

Chris

Posted

Kim,

 

The contributions on this site are for STANDARD osCommerce installations and are not intended for customer template integration. However, usually with a some 'tweaking' of the contribution you can get them to work.

 

You are going to have to compare the information page layout to that of one of your customer template pages (privacy,shipping, conditions) and determine the code that needs to be changed to integrate that new contribution.

 

 

 

Chris

 

Hello Chris.

 

Many thanks goes to you cause of quick reply and thought right answer. I copy pasted few lines from privacy.php and im fine.

 

- Kim

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...