Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order_Info.php page / PWA Questions


JEWbacca

Recommended Posts

Using PWA I have come across a few problems and was wondering if anyone knew the answers....

 

1. Somthing is odd about the width of the main content area (the body so to say). When I look at the source it is at 100% so I don't understand why.

 

Here is the page:

http://blackwidowsecurity.com/ipodstore/Order_Info.php

 

Now look at the "create account" page:

http://blackwidowsecurity.com/ipodstore/create_account.php

 

See the difference? Any ideas?

 

2. I would like to remove the 'Company Details' section from the Order_Info.php page but still have it on the create_account.php page -- is this possible? I'm sure I cand figure it out I just need to know what PHP page to edit as I don't see it in the Order_Info.php source code...

 

3. Also on the Order_Info.php there seems to be a plain empty white box. Once again no such code in the Order_Info.php source looks to be doing this, so where else would it possibly be? (chances are same answer as #2?)

 

Thanks in advance,

 

Nate

Link to comment
Share on other sites

http://blackwidowsecurity.com/ipodstore/Order_Info.php

look at the html code for the center table that holds all of the form fields. It probably has a cellspace or cellpadding larger than the other page, which will make the center area appear smaller.

 

Your code may be a bit different but to remove the company information from one of the pages just look for something like

<table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main"><?php echo ENTRY_COMPANY; ?></td>
<td class="main"><?php echo tep_draw_input_field('company') . ' ' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></td>
</tr>
</table>

and remove it, probably a <tr><td> before and </td></tr> after can go as well.

 

No idea what the code is for the white box. I do not have the order_info.php to look at but you should be able to see something like

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

a few lines below<?php echo ENTRY_FAX_NUMBER; ?> which should be making that white box.

 

Hope that helps some

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Wendy thanks for your reply, but still no luck! It seems that they took an almost 'modular' type approach. There is no such code that calls out 'ENTRY_COMPANY' or any of the other stuff.

 

Here is the source for Order_Info.php:

 

<?php
/*
 $Id: Order_Info.php,v 0.52 2002/09/21 hpdl Exp $
       by Cheng

       OSCommerce v2.2 CVS (09/17/02)

  Modified versions of create_account.php and related
 files.  Allowing 'purchase without account'.

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

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

 $breadcrumb->add(NAV_ORDER_INFO, tep_href_link('Order_Info.php', '', 'SSL'));
?>
<!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 (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<?php require('includes/form_check.js.php'); ?>
</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 //-->
<!--- CHANGE WIDTH HERE //-->
   <td width="250%" valign="top"><form name="account_edit" method="post" <?php echo 'action="' .
tep_href_link('Order_Info_Process.php', '', 'SSL')
. '"'; ?> onSubmit="return check_form(this);"><input type="hidden" name="action" value="process"><table border="0" width="75%" cellspacing="0" cellpadding="0" align="center">
     <tr>
       <td><table border="0" width="75%" cellspacing="0" cellpadding="0">
         <!--tr>
           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr//-->
       </table></td>
     </tr>
<?php
 if (sizeof($navigation->snapshot) > 0) {
?>
     <tr>
       <td class="smallText"><br><?php echo sprintf(TEXT_ORIGIN_LOGIN, tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL')); ?></td>
     </tr>
<?php
 }
?>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td>
<?php
 $email_address = tep_db_prepare_input($HTTP_GET_VARS['email_address']);
 $account['entry_country_id'] = STORE_COUNTRY;

 require(DIR_WS_MODULES . 'Order_Info_Check.php');
?>
       </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 tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
   </table></form></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'); ?>

 

Perhaps looking at this might give you a better idea. Thanks for taking the time to look.

 

Once again, thanks in advance!

 

Nate

Link to comment
Share on other sites

I am just guessing here, but the code may be in

require(DIR_WS_MODULES . 'Order_Info_Check.php');

 

modules folder, order_info_check.php

 

this is the only other code I see that calls for a different file

<?php echo sprintf(TEXT_ORIGIN_LOGIN, tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL')); ?>

but that is the log in page so that shouldn't have the code you are looking for.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Try changing this to a smaller % in order_info

 

 

<!--- CHANGE WIDTH HERE //-->

<td width="250%" valign="top">

 

 

 

Here is the source for Order_Info.php:

 

<?php

/*

?$Id: Order_Info.php,v 0.52 2002/09/21 hpdl Exp $

? ? ? ?by Cheng

 

? ? ? ?OSCommerce v2.2 CVS (09/17/02)

 

? Modified versions of create_account.php and related

?files. ?Allowing 'purchase without account'.

 

?osCommerce, Open Source E-Commerce Solutions

?http://www.oscommerce.com

 

?Copyright © 2002 osCommerce

 

?Released under the GNU General Public License

*/

 

?require('includes/application_top.php');

 

?require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT);

 

?$breadcrumb->add(NAV_ORDER_INFO, tep_href_link('Order_Info.php', '', 'SSL'));

?>

<!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 (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

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

<?php require('includes/form_check.js.php'); ?>

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

<!--- CHANGE WIDTH HERE //-->

<td width="250%" valign="top"><form name="account_edit" method="post" <?php echo 'action="' .

tep_href_link('Order_Info_Process.php', '', 'SSL')

. '"'; ?> onSubmit="return check_form(this);"><input type="hidden" name="action" value="process"><table border="0" width="75%" cellspacing="0" cellpadding="0" align="center">

? ? ?<tr>

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

? ? ? ? ?<!--tr>

? ? ? ? ? ?<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

? ? ? ? ? ?<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

? ? ? ? ?</tr//-->

? ? ? ?</table></td>

? ? ?</tr>

<?php

?if (sizeof($navigation->snapshot) > 0) {

?>

? ? ?<tr>

? ? ? ?<td class="smallText"><br><?php echo sprintf(TEXT_ORIGIN_LOGIN, tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL')); ?></td>

? ? ?</tr>

<?php

?}

?>

? ? ?<tr>

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

? ? ?</tr>

? ? ?<tr>

? ? ? ?<td>

<?php

?$email_address = tep_db_prepare_input($HTTP_GET_VARS['email_address']);

?$account['entry_country_id'] = STORE_COUNTRY;

 

?require(DIR_WS_MODULES . 'Order_Info_Check.php');

?>

? ? ? ?</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 tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>

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

? ? ? ? ? ? ?</tr>

? ? ? ? ? ?</table></td>

? ? ? ? ?</tr>

? ? ? ?</table></td>

? ? ?</tr>

? ?</table></form></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'); ?>

 

 

Perhaps looking at this might give you a better idea. Thanks for taking the time to look.

 

Once again, thanks in advance!

 

Nate

Link to comment
Share on other sites

Wendy and Terry,

 

First off thanks for your help. I have got most of it (2 and 3) fixed, but numer 1 still is not working.

 

The page (http://blackwidowsecurity.com/ipodstore/Order_Info.php)seems to load a little better in IE than it does FIREFOX but still both are only 'okay' if you will.

 

Would I change the width on the order_info.php or the order_info_check.php (inside the modules folder)?

 

Thanks,

 

Nate

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...