Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login boxes


Guest

Recommended Posts

Posted

Hi i need some help or advice on how to remove theses boxes on the login page page i have 3 boxes

 

1 box says (I am a returning customer.)

 

2 box (New Customer)

 

3 box (Proceed Directly to Checkout)

 

what i want to do is remove the 1 and 2 boxes so it just showns (Proceed Directly to Checkout)

 

if you click below it will show you the page i am talking about

 

login page

 

 

thxs

Posted

thxs but what do i comment out hehehe

 

 

<?php

/*

$Id: login.php,v 1.80 2003/06/05 23:28:24 hpdl Exp $

 

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

 

// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started)

if ($session_started == false) {

tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));

}

 

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

 

$error = false;

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {

$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);

$password = tep_db_prepare_input($HTTP_POST_VARS['password']);

 

// Check if email exists

$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");

if (!tep_db_num_rows($check_customer_query)) {

$error = true;

} else {

$check_customer = tep_db_fetch_array($check_customer_query);

// Check that password is good

if (!tep_validate_password($password, $check_customer['customers_password'])) {

$error = true;

} else {

if (SESSION_RECREATE == 'True') {

tep_session_recreate();

}

 

$check_country_query = tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$check_customer['customers_id'] . "' and address_book_id = '" . (int)$check_customer['customers_default_address_id'] . "'");

$check_country = tep_db_fetch_array($check_country_query);

 

$customer_id = $check_customer['customers_id'];

$customer_default_address_id = $check_customer['customers_default_address_id'];

$customer_first_name = $check_customer['customers_firstname'];

$customer_country_id = $check_country['entry_country_id'];

$customer_zone_id = $check_country['entry_zone_id'];

tep_session_register('customer_id');

tep_session_register('customer_default_address_id');

tep_session_register('customer_first_name');

tep_session_register('customer_country_id');

tep_session_register('customer_zone_id');

 

tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'");

 

// restore cart contents

$cart->restore_contents();

 

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

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);

$navigation->clear_snapshot();

tep_redirect($origin_href);

} else {

tep_redirect(tep_href_link(FILENAME_DEFAULT));

}

}

}

}

 

if ($error == true) {

$messageStack->add('login', TEXT_LOGIN_ERROR);

}

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

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', '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; ?>">

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

<title>Welcome To Choice Computers</title>

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

<meta name="description" content="The ONLY web site you will need for all your computer needs, complete with free home installations and setup" />

<meta name="keywords" content="Computer, Computers, Component, Systems, Custom, Printers, Scanners, Online, Purchasing, Secure, Free Installation And Setup On All Computers" />

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

<?php if ($javascript) { require(DIR_WS_JAVASCRIPT . $javascript); } ?>

</head>

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

<!-- warnings //-->

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

<!-- warning_eof //-->

 

<!-- header //-->

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

<tr class="header">

<td bgcolor="#336699">

<p align="center">

<img border="0" src="http://www.choice-computers.com/images/4th.JPG" align="left"></p>

<p align="right"> </p>

<p align="right"> </p>

</td>

</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1" height="21">

<tr>

<td class="headerNavigation" height="19" bordercolor="#008000" style="border: 1px solid #336699; padding: 1" bgcolor="#336699"> 

<a style="text-decoration: blink" href="http://www.choice-computers.com">

<font color="#FFFFFF">Home</font></a><font color="#FFFFFF"> |

<a href="http://www.choice-computers.com/contact_us.php" style="text-decoration: none">

<font color="#FFFFFF">Contact Support</font></a> |

<a href="http://www.choice-computers.com/shipping.php" style="text-decoration: none">

<font color="#FFFFFF">Delivery Information</font></a> |

<a style="text-decoration: none" target="_blank" href="http://www.choice-computers.com/Payment.htm">

<font color="#FFFFFF">Payment Information</font></a></font></td>

<td align="right" class="headerNavigation" height="19" bordercolor="#008000" style="border: 1px solid #336699; padding: 1" bgcolor="#336699"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>

 |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>

 |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>

 |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>

  </td>

</tr>

<tr>

<td class="headerNavigation" height="19" bordercolor="#008000" style="border: 1px solid #C0C0C0; padding: 1" bgcolor="#FFFFFF" colspan="2">  <?php echo $breadcrumb->trail(' » '); ?></td>

</tr>

</table>

<!-- 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"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?><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 HEADING_TITLE; ?></td>

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

</tr>

</table></td>

</tr>

<tr>

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

</tr>

<?php

if ($messageStack->size('login') > 0) {

?>

<tr>

<td><?php echo $messageStack->output('login'); ?></td>

</tr>

<tr>

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

</tr>

<?php

}

 

if ($cart->count_contents() > 0) {

?>

<tr>

<td class="smallText"><?php echo TEXT_VISITORS_CART; ?></td>

</tr>

<tr>

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

</tr>

<?php

}

?>

<tr>

<td align="center"><table cellSpacing="0" cellPadding="2" width="70%" border="0">

 

<?php

if (PWA_ON == 'false') {

require(DIR_WS_INCLUDES . FILENAME_PWA_ACC_LOGIN);

} else {

require(DIR_WS_INCLUDES . FILENAME_PWA_PWA_LOGIN);

}

?>

</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 . 'counter.php'); ?>

<table border="0" width="100%" cellspacing="0" cellpadding="1" height="207">

<tr>

<td class="footer" height="19"> </td>

</tr>

<tr class="footer">

<td bgcolor="#FFFFFF" height="19"> </td>

</tr>

<tr class="footer">

<td bgcolor="#FFFFFF" height="163">

<p align="center" style="margin-bottom: -13">

  

<img border="0" src="http://www.choice-computers.com/images/world.gif" width="148" height="46">   </p>

<p align="center" style="margin-bottom: -13">

<img src="" width="20" height="16">

<b>

<font size="1" color="#336699">All Online orders are placed via  SSL enabled Secure Server</font></b></p>

<p align="center">

<img title=" osCommerce " alt="osCommerce" src="http://www.choice-computers.com/images/CARD.gif" border="0" width="243" height="36"></td>

</tr>

</table>

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

<tr>

<td align="center" class="smallText">

<?php

/*

The following copyright announcement can only be

appropriately modified or removed if the layout of

the site theme has been modified to distinguish

itself from the default osCommerce-copyrighted

theme.

 

For more information please read the following

Frequently Asked Questions entry on the osCommerce

support site:

 

http://www.oscommerce.com/community.php/faq,26/q,50

 

Please leave this comment intact together with the

following copyright announcement.

*/

 

echo FOOTER_TEXT_BODY

?>

</td>

</tr>

</table>

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

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

<tr>

<td align="center"></td>

</tr>

</table>

<?php

}

?>

<!-- footer_eof //-->

<br>

</body>

</html>

Posted

You will need to change your catalog/includes/login_pwa.php file as that is where the boxes are created. I am pretty sure if you just change the file to read like this you should be all set.

 

<?php
<td>
$pwa_checkout_title = HEADING_CHECKOUT;
$pwa_checkout_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\">
 <tr>
   <td width=\"100%\" class=\"main\" colspan=\"3\">" . TEXT_CHECKOUT_INTRODUCTION . "</td>
 </tr>
 <tr>
   <td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td>
 </tr>
 <tr>
   <td width=\"33%\" class=\"main\"></td>
   <td width=\"33%\"></td>
   <td width=\"34%\" rowspan=\"3\" align=\"center\">" . '<a href="' . tep_href_link(FILENAME_CHECKOUT, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>' . "<br><br></td>
 </tr>
</table>";
//===========================================================
?>
<?php echo tep_draw_separator('pixel_trans.gif', '100%', '15'); ?>
<table width="100%" cellpadding="5" cellspacing="0" border="0">
   <tr>
    <td class="main" width=100% valign="top" align="center">
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                              'text'  => $pwa_checkout_title );
 new infoBoxHeading($info_box_contents, true, true);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                              'text'  => $pwa_checkout_info);
 new infoBox($info_box_contents);
?>
 </td>
 </tr>
</table>
</td>

Posted

which contribution is this...

Purchase without account

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

i got parse error

 

the cont is PWA

 

MY Code is login_pwa.php

 

<td>

<?php

//BOF: MaxiDVD Returning Customer Info SECTION

//===========================================================

$returning_customer_title = TEXT_RETURNING_CUSTOMER;

$returning_customer_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\">

<tr>

<td width=\"100%\" class=\"main\" colspan=\"3\">" . HEADING_RETURNING_CUSTOMER . "</td>

</tr>

<tr>

<td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td>

</tr>

<tr>

<td class=\"main\">

 

<table width=\"70%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"left\">

<tr>

<td class=\"main\">" . ENTRY_EMAIL_ADDRESS . "</td>

<td>" . tep_draw_input_field('email_address') . "</td>

</tr>

<tr>

<td class=\"main\">" . ENTRY_PASSWORD . "<br><br></td>

<td>" . tep_draw_password_field('password') . "<br><br></td>

</tr>

</table>

<table width=\"30%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\">

<tr>

<td align=\"center\" class=\"smalltext\">" . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . "<br><br>" . '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>' . "<br><br></td>

</tr>

</table>

</td>

</tr>

</table>

";

//===========================================================

?>

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

<tr>

<td class="main" width=100% valign="top" align="center">

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $returning_customer_title );

new infoBoxHeading($info_box_contents, true, true);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $returning_customer_info);

new infoBox($info_box_contents);

?>

</td>

</tr>

</table>

<?php

//EOF: MaxiDVD Returning Customer Info SECTION

//===========================================================

 

 

 

 

 

//MaxiDVD New Account Sign Up SECTION

//===========================================================

$create_account_title = HEADING_NEW_CUSTOMER;

$create_account_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\">

<tr>

<td width=\"100%\" class=\"main\" colspan=\"3\">" . TEXT_NEW_CUSTOMER_INTRODUCTION . "</td>

</tr>

<tr>

<td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td>

</tr>

<tr>

<td width=\"33%\" class=\"main\"></td>

<td width=\"33%\"></td>

<td width=\"34%\" rowspan=\"3\" align=\"center\">" . '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_create_account.gif', IMAGE_BUTTON_CREATE_ACCOUNT) . '</a>' . "<br><br></td>

</tr>

</table>";

//===========================================================

?>

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

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

<tr>

<td class="main" width=100% valign="top" align="center">

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $create_account_title );

new infoBoxHeading($info_box_contents, true, true);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $create_account_info);

new infoBox($info_box_contents);

?>

</td>

</tr>

</table>

<?php

//EOF: MaxiDVD New Account Sign Up SECTION

//===========================================================

 

 

 

 

 

//BOF: MaxiDVD Purchase With-Out An Account SECTION

//===========================================================

$pwa_checkout_title = HEADING_CHECKOUT;

$pwa_checkout_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\">

<tr>

<td width=\"100%\" class=\"main\" colspan=\"3\">" . TEXT_CHECKOUT_INTRODUCTION . "</td>

</tr>

<tr>

<td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td>

</tr>

<tr>

<td width=\"33%\" class=\"main\"></td>

<td width=\"33%\"></td>

<td width=\"34%\" rowspan=\"3\" align=\"center\">" . '<a href="' . tep_href_link(FILENAME_CHECKOUT, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>' . "<br><br></td>

</tr>

</table>";

//===========================================================

?>

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

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

<tr>

<td class="main" width=100% valign="top" align="center">

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $pwa_checkout_title );

new infoBoxHeading($info_box_contents, true, true);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $pwa_checkout_info);

new infoBox($info_box_contents);

?>

</td>

</tr>

</table>

<?php

//EOF: MaxiDVD Purchase With-Out An Account SECTION

//===========================================================

?>

</td>

Posted

what is the parse error

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

Parse error: parse error in /data/members/paid/c/h/choice-computers.com/htdocs/www/includes/login_pwa.php on line 2

Posted

the line #2 is because there is html code within the php code you will need to break in and out of php for the html

 

<?php
<td>
$pwa_checkout_title = HEADING_CHECKOUT;
$pwa_checkout_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\">
<tr>
  <td width=\"100%\" class=\"main\" colspan=\"3\">" . TEXT_CHECKOUT_INTRODUCTION . "</td>
</tr>
<tr>
  <td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td>
</tr>
<tr>
  <td width=\"33%\" class=\"main\"></td>
  <td width=\"33%\"></td>
  <td width=\"34%\" rowspan=\"3\" align=\"center\">" . '<a href="' . tep_href_link(FILENAME_CHECKOUT, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>' . "<br><br></td>
</tr>
</table>";
//===========================================================
?>

should read

<td>
<?php

also in other parts of the above code the same principle will apply

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...