OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Customer Login Routines
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Tips and Tricks
Pages: 1, 2, 3, 4, 5, 6
burt
When a (non logged in or new) customer enters your store, and buys a product, clicks "in cart" and then "check out", he is immediately re-directed to login.php in order for him to either log in or create a new account...

After looking at transfer logs of a number of Osc shops, we were seeing that people were leaving the store at this point rather than "creating an account" and purchasing products... not good :!: :!: I think that "create an account" is too intimidating.

What could we do about it ? Easy!!

Open up checkout_payment.php and find:

CODE
// if the customer is not logged on, redirect them to the login page

 if (!tep_session_is_registered('customer_id')) {

   $navigation->set_snapshot();

   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

 }


Change it to:

CODE
// if the customer is not logged on, redirect them to the login page

 if (!tep_session_is_registered('customer_id')) {

   $navigation->set_snapshot();

   tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

 }


What does this do ? Instead of being re-directed to login.php, they are re-directed to create_account.php. If you also in the language file for "create_account.php" use the words "create a profile" instead of "create an account" this will help.

In addition, it helps if you put at the top of create_account.php a small explanation eg;

QUOTE
NOTE: If you have already set up a Profile in order to use our services, please login at the login page.

Why do we need your Information?

To enable us to provide you with our services, it is important that we collect some details from you. Rest assured that your details do not get passed on to other sites or companies.


We are now seeing a marked improvement in the sites visitor/sales ratio that we have implemented this quick and easy mod on...I'll have better figures in a few weeks time, but from initial results over the past few days it is looking very good. biggrin.gif 8)

HTH
WebGeek
Very good tip! :wink:
rivithead
I took a little different approach at this one. Basically I put the logon and account creation on one page. Seems to work good.
https://www.rivithead.com/login.php
luca75
Very good tip Burt ! laugh.gif
burt
In the past 6 days, sales across the 8 sites (that are running this mod) are up by an average of 18% !! Which is a helluva lot of sales...

This cannot be attributed to Seasonal influences as the ones I admin that have not yet had this mod done are running at about 2% up on December...
MikeMike
That is a great idea if it is a new customer, but what if it is a returning customer? They don't have anything to do on that page. I could imagine there would be some confusion.

Regards
Mike
rainbow007
Install a login-in box and the problem is solved.

rainbow007
MikeMike
Yes, I just saw Davids page and it looks good.
burt
If the customer is already Logged in (maybe via cookie) then they would not be directed to login.php or create_account.php in the first place. When they clicked checkout, they would go directly to the checkout procedure and complete their checkout.

If the person coming back is an existing customer, but not logged in, then that is what the note "if you have already set up a profile, blah blah blah" is for.

If they still fill in the create_account screen, and use the same email address as previously, they will error out anyway, asking them to log in at login.php

Makes sense ?
Paul B
Great and easy mod Burt :wink: TA!

Small clarification on the files paths for idiots like me.

catalog/checkout_payment.php is the file to change the code and

catlog/includes/langauges/english/create_account.php is where the text for the Create Account page can be atered.

I changed the latter as follows :

CODE
define('NAVBAR_TITLE', 'Create a Profile');

define('HEADING_TITLE', 'Your Details');

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><b>NOTE:</b></font></small>

To complete your order we need the following details. <br>

<b>Please be assured we do not give, disribute or sell these details to third parties.</b><br><br>

If you have ordered with us before, miss this stage and go to the <a href="%s"><u>login page</u></a>.');

?>
Paul B
I've gone and guilded the lilly by altering:

catalog/includes/languages/english/create_account_success.php

and changed as follows:
QUOTE
define('NAVBAR_TITLE_1', 'Create Profile');
define('NAVBAR_TITLE_2', 'Success');
define('HEADING_TITLE', 'Your Profile Has Been Created!');


And added this to the bottom of the text:

QUOTE
Meanwhile to complete your present order click the Continue button...
dreamscape
QUOTE
And added this to the bottom of the text:

QUOTE
Meanwhile to complete your present order click the Continue button...


thats ok if they create an account during the checkout process... but don't ya think that's kinda pushy (well not pushy... but kinda confusing and maybe a little indimidating) for those who are creating an account the 1st time and don't have any items in their cart yet?
Paul B
QUOTE
QUOTE
And added this to the bottom of the text:

QUOTE
Meanwhile to complete your present order click the Continue button...


thats ok if they create an account during the checkout process... but don't ya think that's kinda pushy (well not pushy... but kinda confusing and maybe a little indimidating) for those who are creating an account the 1st time and don't have any items in their cart yet?


My idea was to - as simply as possible - drop the 'account' idea alltogther. So there is no reference to it. Many site owners don't really understand this, never mind customers. Partic for a shop that has mainly one-time buyers who are unlikely to come back again.

So you can only create and account (or profile) as part of the checkout system. The problem is to get the present scripts to do this with minimum changes. Burt's tip is great, but it ends in 'Your account has been successfully created' - so I wanted that to seem part of the checkout.

As a bonus existing 'account holders' skip the account creation part.
alembic
Hello been trying to get round this account creation thing correctly for ages.
Noticed that by doing this even if the cart is empty they can go through to checkout ?

// Check if there is something in the cart
if ($cart->count_contents() == 0) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));
}

Still working on this though.
burt
I've been tracking this now for exactly one month across 24 sites, 14 of which have this change installed.

On the 14 sites that do have it, the abandon rate is far far less than those that don't...approx 60% less than previous months, going by the transfer-logs...

Those that are "standard" login procedure are holding steady at pretty much th same abandon rates as pervious months

So, my advice would be to make this change or at least make the login procedure less "in your face" for new clients...

hth
aperfecthost
I like the changes you mention in this post. I have implemented them.

I had a problem before adding those changes and still do.

Our customers are getting the login screen several times during their shopping experience. Obviously the cache or sessions isn't working right, but I am stumped! Any advice to fix that?
Ian-San
I like this mod but I think that you need to make the change to more files to cover all possibilities. Also, I am directing the customer to my Guest Account create page. I guess it all depends on what percent of your customners are returning members and what are new?
aperfecthost
I like the changes you mention in this post. I have implemented them.

I had a problem before adding those changes and still do.

Our customers are getting the login screen several times during their shopping experience. Obviously the cache or sessions isn't working right, but I am stumped! Any advice to fix that?
jon
QUOTE
So, my advice would be to make this change or at least make the login procedure less "in your face" for new clients...


Less in your face, huh? Hmm. Interesting. To decrease dropoffs and ultimately increase sales, do you recommend NOT using one a Login Infobox contrib?

And how about the recent breadcrumb login/logout modification at
http://forums.oscommerce.com/viewtopic.php?t=32800

Do you think that would decrease response?

(Probably whatever Amazon.com does would be a good case study, since they themselves study these things and A/B different formats *constantly*. It seems like your modification here brings us a little closer to Amazon's current model in some ways -- fantastic stuff! smile.gif)
burt
QUOTE
QUOTE
So, my advice would be to make this change or at least make the login procedure less "in your face" for new clients...


Less in your face, huh? Hmm. Interesting. To decrease dropoffs and ultimately increase sales, do you recommend NOT using one a Login Infobox contrib?
Yes, I recommend not to use any sort of "Login" box. Unless of course it's a returning customer (so only returning customers see it and not new customers).

QUOTE
And how about the recent breadcrumb login/logout modification at http://forums.oscommerce.com/viewtopic.php?t=32800


I implemented something along those lines in (most of) the shops I do months ago...

QUOTE
(Probably whatever Amazon.com does would be a good case study, since they themselves study these things and A/B different formats *constantly*. It seems like your modification here brings us a little closer to Amazon's current model in some ways -- fantastic stuff! smile.gif)


Anything that gets more customers buying your products has to be good. I have proved (to my satisfaction) that this mod works across a range of sites, selling products and services ranging from Videos > t-shirts > baby stuff > website hosting > cars that this decreases the likelihood of the customer leaving when they are confronted with an Ominous "login" box.

hth
MikeF
Hi,
could someone please summarize what the mod(s)/contribs are and/or code changes are that we need to make to get more customers by not loosing them at the login box? laugh.gif
CC
Your asking in the wrong place mate.

The rules for this forum says not to use for asking questions.

Try opening this is a better forum, and perhaps give a link here for people to read up and find out the history of your question.

CC.
MikeF
I apologize. I had not read the rules.

QUOTE
Question deleted. laugh.gif
rseigel
QUOTE
Open up checkout_payment.php and find:


Before this drives anyone else crazy that should be checkout_shipping.php (at least that's what it is in the current CVS).

:shock: :shock: :shock: :shock: :shock: Thought I was losing my mind for a minute there. :shock: :shock: :shock: :shock: :shock:
kiwimagic
Hi,
I was a bit sceptical but tried the mod anyway. I could not believe it....it works like crazy. I would say our checkouts have increased by 40%, that is, the conversion rate from people who put something in their cart, and then follow through checkout, rather than abandoning the cart has improved by at least 40%. I spent the afternoon watching in amazement. This has got to be the idea of the month....simple but so very effective effective.....convertee!!
Thanks!!
Regards
David
burt
QUOTE
Hi,
I was a bit sceptical but tried the mod anyway. I could not believe it....it works like crazy. I would say our checkouts have increased by 40%, that is, the conversion rate from people who put something in their cart, and then follow through checkout, rather than abandoning the cart has improved by at least 40%. I spent the afternoon watching in amazement. This has got to be the idea of the month....simple but so very effective effective.....convertee!!
Thanks!!
Regards
David


I want 50% commission on that 40% increase wink.gif
jon
QUOTE
QUOTE
Hi,
I was a bit sceptical but tried the mod anyway. I could not believe it....it works like crazy. I would say our checkouts have increased by 40%, that is, the conversion rate from people who put something in their cart, and then follow through checkout, rather than abandoning the cart has improved by at least 40%. I spent the afternoon watching in amazement. This has got to be the idea of the month....simple but so very effective effective.....convertee!!
Thanks!!
Regards
David


I want 50% commission on that 40% increase wink.gif


hehe! you deserve it! It **is** awesome!

And maybe a good next step, if you or someone can figure it out, is when someone is signing up during checkout... and only during checkout... once the signup process is complete, get it somehow to skip directly to the shipping options module, bypassing the surfing Office Space man. That's a superfluous step in this process can definitely go.

He's kind of nice, though, when people are just signing up for no particular reason. Heh. Well, not *him*, per se, but the text you can display. It's a good time to hammer home the benefits of your site, and the next actions you want them to take. So, I'd say, if someone can work this out, definitely keep that process for member signups outside of the checkout process. It makes sense in that context. It just doesn't make sense in the way that Burt recontextualized the signup process during checkout.

Jon
webdeva
This is great!

Thansk for taking the time to post it. I have been wanting to do this for awhile and I had the instructions packed away on a to do later list that got missing ..sheesh :oops:

So glad it was so easy to find!


Webdeva
webdeva
I hope maybe someone here can help me.

I want to be notified through email everytime I have a new customer sign up for an account. How can this be done?

Thanks,
Webdeva
BirdBrain
Nicole,

Please read the Sticky at the beginning of this forum...It is for Tips and Tricks, not questions.

Second, your question has absolutely nothing to do with this topic.
burt
QUOTE
Nicole,

Please read the Sticky at the beginning of this forum...It is for Tips and Tricks, not questions.

Second, your question has absolutely nothing to do with this topic.


According to a member of the Core Team, it is fine to ask on-topic questions in reply to a thread in the Tips/Tricks Forum.

You are correct though, that the posters question has zero to do with the thread...
webdeva
Ok sorry.

I had beed surfing the forums forever on a few differant topics. I didn't start at the top!

I had no idea. I'll move my question. It did have to do with customer accounts, but it isn't directly related.

I wish we could search the forums with "items to search for" and have the results come up with exactly the search term...... now that would help me out alot!

Thanks,
Webdeva
CatHerder
You realise this doesn't work anymore with the new checkout method right?
burt
QUOTE
You realise this doesn't work anymore with the new checkout method right?


Works perfectly, but needs updating so that the check is in (IIRC) checkout_shipping.php rather that checkout_payment.php (old checkout procedure). As already mentioned by someone else in the thread.
Mr. Ree
I did have some confusion with customers that already had accounts, even with the comment "If you have ordered with us before, miss this stage and go to the login page" and it was in red and hyperlinked at that.

By adding just below the <!-- body //--> statement:
CODE
<! ADDED LOGIN>



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

     <tr>

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

     </tr>

<?php

 if ($HTTP_GET_VARS['login'] == 'fail') {

   $info_message = TEXT_LOGIN_ERROR;

 } elseif ($cart->count_contents()) {

   $info_message = TEXT_VISITORS_CART;

 } elseif ($HTTP_GET_VARS['login'] == 'invalid') {

   $info_message = TEXT_VALID_ERROR;

 }



 if (isset($info_message)) {

?>

     <tr>

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

     </tr>

     <tr>

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

     </tr>

<?php

 }

?>

     <tr>

       <td><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>

     

<tr>

           <td width="50%" height="100%" valign="top"><table border="0" width="50%" height="100%" cellspacing="0" cellpadding="1" class="infoBox">



           </td>

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

             <tr>

               <td><center><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2" class="infoBoxContents">

                 <tr>

                   <td class="main" colspan="4"><font color=red><B>If you are a returning customer you may Login Here.</b></font><br>New customers may create an account below.</font></td>

                 </tr>

                 <tr>

                   <td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td>

                   <td class="main"><?php echo tep_draw_input_field('email_address'); ?></td>

                   <td class="main"><b><?php echo ENTRY_PASSWORD; ?></b><?php echo tep_draw_password_field('password'); ?></td>

                 </tr>

                 <tr>

                   <td class="smallText" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>

           <td width="50%" align="right" valign="top"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>

         </tr>        

               </table></center></td>

             </tr>

           </table></td>

         </tr>

         

       </table></form></td>

     </tr>

   </table></td>



<! ADDED LOGIN end>


Then add just above the </head> tag for the java warning;
CODE
<script language="javascript"><!--

function session_win() {

 window.open("<?php echo FILENAME_INFO_SHOPPING_CART; ?>","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();

}

//--></script>




Be sure and backup before messing about.
Mr. Ree
Whoops, I never tried to help before.. I left out some stuff.

The above is added to catalog/create_account.php

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

to

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

I am using MS1 Ian's Loaded 5.
gdfwilliams
Very smooth. Here's a look at my version:
https://tibetcollection.com/create_account.php

- Greg
gdfwilliams
Since users that select Create Account from the login page aren't going to want to see the login box again, I have made the link from login.php to create_account.php pass a variable called 'new':

CODE
<td width="50%" align="right" valign="top"><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, 'new=1', 'SSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>


Then, a simple
CODE
<?php

 if (!$HTTP_GET_VARS['new']) {

?>

ALL YOUR LOGIN TABLE STUFF HERE

<?php

}

?>


Now, if the user arrives at create_account.php through the New Customer Continue button on login.php, they won't see a login box once they get there...

Take a look: https://tibetcollection.com/login.php

- Greg



https://tibetcollection.com/login.php
ozstar
Hi

Just in case....

QUOTE
Questions are OK within the tips/tricks forum if the question is about a tip/trick that has already been posted.
- The question should be added to the existing thread. (ie, a new thread should not be created).


This sounds a great idea but with 4 pages of changes it is a little confusing.

What about someone who knows it all, posting all the correct changes needed and where. Maybe either in a Contrib if not in this or another thread.

I'd certainly like to implement it.

Regards,

OZ
teksigns
i like Gregs idea also


i would like to know all the changes needed also .
Mr. Ree
QUOTE
Since users that select Create Account from the login page aren't going to want to see the login box again,


Greg, dude that is so sweet.

I wish I knew to write this stuff.

Thanks for the great add on!
Paul_w
QUOTE
Since users that select Create Account from the login page aren't going to want to see the login box again, I have made the link from login.php to create_account.php pass a variable called 'new':

CODE
<td width="50%" align="right" valign="top"><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, 'new=1', 'SSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>


Then, a simple
CODE
<?php

 if (!$HTTP_GET_VARS['new']) {

?>

ALL YOUR LOGIN TABLE STUFF HERE

<?php

}

?>


Now, if the user arrives at create_account.php through the New Customer Continue button on login.php, they won't see a login box once they get there...

Take a look: https://tibetcollection.com/login.php

- Greg


This is a nice tip, however if you have the log-in box on your 'create account' page, why do you still use the login.php page? Would it not be better to change all log-in links to go to the create account page, or is there something I'm missing?

Also to Burt, thanks for posting this suggestion in the first place, it is a big improvement over the standard layout, in my own usability testing I have noticed people struggling to work out what to do when they reach the log in area of the site.....
burt
QUOTE
Also to Burt, thanks for posting this suggestion in the first place, it is a big improvement over the standard layout, in my own usability testing I have noticed people struggling to work out what to do when they reach the log in area of the site.....


Welcome.

It's good that people have also started to adapt and refine the idea to their own particular set-ups.
delaen
I made mine very Amazonian, it seems to have helped a lot so far with new sign-ups.

https://copia.safe-order.net/badmouthmovies/login.php
Colin
interesting problem with this mod..

When I try to use the mod given on page 4 my cart breaks. The login box redirects me to the Create Account page when I click Login, and the bottom Continue now has a bad link (it's now completely dead, unresponsive when i click on Continue without trying to make a new account)..

Ideas? this is weird..
thanks,
Colin
burt
QUOTE
interesting problem with this mod..

When I try to use the mod given on page 4 my cart breaks. The login box redirects me to the Create Account page when I click Login, and the bottom Continue now has a bad link (it's now completely dead, unresponsive when i click on Continue without trying to make a new account)..

Ideas? this is weird..  
thanks,
Colin


Check your HTML. I would be willing to bet that you have a form within a form.

In effect:

<form for creating an account>
<form for logging in>
login stuff
</form>
create account stuff
</form>

You need to amend that page:

<form for creating an account>
login stuff
</form>
<form for logging in>
create account stuff
</form>

hth
burt
QUOTE
<form for creating an account>
login stuff
</form>
<form for logging in>
create account stuff
</form>

Doh. Why isn't there an edit post feature on this bloody forum wink.gif

That should of course be:

<form for creating an account>
create account stuff
</form>
<form for logging in>
login stuff
</form>

But you should get the general idea.
delaen
I was asked by a couple people to post the code for my login page. Here you go.

In catalog/login.php replace everything above:

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


with

CODE
<?php

/*

 $Id: login.php,v 1.2 2002/11/29 00:08:06 wilt Exp $



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



 if ($HTTP_POST_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)) {

     $HTTP_GET_VARS['login'] = 'fail';

   } else {

     $check_customer = tep_db_fetch_array($check_customer_query);

// Check that password is good

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

       $HTTP_GET_VARS['login'] = 'fail';

     } else {

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

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



       setcookie('email_address', $email_address, time()+2592000, substr(DIR_WS_CATALOG, 0, -1));



       

 

 

 $date_now = date('Ymd');

       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 = '" . $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));

       }

     }

   }

 } elseif ($HTTP_POST_VARS['action'] == 'new') {

 

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

     tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, $email_address, 'SSL'));

 }

 

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



 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', 'SSL'));

?>


Then replace everything that comes between
CODE
<!-- body_text //-->


and

CODE
<!-- body_text_eof //-->


with

CODE
<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 HEADING_TITLE; ?></td>

         </tr>

       </table></td>

     </tr>

     <tr>

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

     </tr>

<?php

 if ($HTTP_GET_VARS['login'] == 'fail') {

   $info_message = TEXT_LOGIN_ERROR;

 } elseif ($cart->count_contents()) {

   $info_message = TEXT_VISITORS_CART;

 }



 if (isset($info_message)) {

?>

     <tr>

       <td class="smallText" colspan="2"><?php echo $info_message; ?></td>

     </tr>

     <tr>

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

     </tr>

<?php

 }

?>

     <tr>

       <td><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, '', 'SSL')); ?>

 

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

          <tr>

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

   

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

              <tr>

                <td valign="top">

     

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

     <tr>

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

                     </tr>

     

     <tr>

         <td class="main" colspan="2" align="left"><b><?php echo TEXT_EMAIL_QUESTION; ?></b></td>

     </tr>



                   <tr>

                     <td class="main" align="right"><?php echo ENTRY_EMAIL_ADDRESS_LOGIN; ?></td>

                     <td class="main" align="left"><?php echo tep_draw_input_field('email_address'); ?></td>

                   </tr>

     

     <tr>

                     <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '20'); ?></td>

                     </tr>

     

     

     

     <tr>

         <td class="main" colspan="2" align="left"><b><?php echo TEXT_PASSWORD_QUESTION; ?></b></td>

     </tr>

     

     <tr>

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

                     </tr>

     

     <tr>

         <td class="main" align="right"><?php echo tep_draw_radio_field('action', 'new') ?></td>

         <td class="main" align="left"><?php echo TEXT_NO_PASSWORD; ?></td>

     </tr>

     

     <tr>

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

                     </tr>    

             

     <tr>

         <td class="main" align="right"><?php echo tep_draw_radio_field('action', 'process', true) ?></td>

         <td class="main" align="left"><?php echo TEXT_HAS_PASSWORD; ?></td>

     </tr>

   

                   <tr>

         <td class="main"><br></td>

                     <td class="main"><?php echo tep_draw_password_field('password'); ?></td>

                   </tr>

     

     <tr>

                     <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '25'); ?></td>

                     </tr>

     

     <tr>

         <td><br></td>

           <td align="left" valign="top"><?php echo tep_image_submit('button_sign_in_secure.gif', IMAGE_BUTTON_LOGIN); ?></td>

       </tr>

                   

                   <tr>

         <td><br></td>

                     <td class="smallText" align="left"><br><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>

                   </tr>



                   <tr>

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

                   </tr>

     



                 </table>

       </td>

              </tr>

            </table>

   </td>

   </form>

   

   

   

   <td width="25%" valign="top" class="loginInfo">

   <?php echo TEXT_SAFE_SHOPPING; ?>

   <p>

   <?php echo TEXT_SAFE_SHOPPING2; ?>

   <p>

   <?php echo TEXT_SAFE_SHOPPING3; ?>

   </td>

   

      </tr>

       </table>      

   

   </td>


That should be right anyway, but let me know if it's not.

Then my login.php language file looks like:

CODE
<?php

/*

 $Id: login.php,v 1.1.1.1 2002/11/28 23:22:07 wilt Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/



if ($HTTP_GET_VARS['origin'] == FILENAME_CHECKOUT_PAYMENT) {

 define('NAVBAR_TITLE', 'Order');

 define('HEADING_TITLE', 'Ordering online is easy.');

 define('TEXT_STEP_BY_STEP', 'We'll walk you through the process, step by step.');

} else {

 define('NAVBAR_TITLE', 'Login');

 define('HEADING_TITLE', 'Sign in or create a new profile');

 define('TEXT_STEP_BY_STEP', ''); // should be empty

}











define('TEXT_EMAIL_QUESTION', '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;What is your email address:');







define('TEXT_NO_PASSWORD', 'No, I am a new customer.');

define('TEXT_HAS_PASSWORD', 'Yes, I am a returning customer<br>and my password is:');





define('ENTRY_EMAIL_ADDRESS_LOGIN', 'My email address is:');

define('TEXT_PASSWORD_QUESTION', '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do you have a Badmouthmovies password?');







define('TEXT_SAFE_SHOPPING', '<b>Safe Shopping Guarantee</b><br>Badmouthmovies.com guarantees that every transaction you make at Badmouthmovies.com will be safe.');

define('TEXT_SAFE_SHOPPING2', '<b>Privacy & Security</b><br>All your information is safe and secure. The entire transaction will take place on a secure server using SSL technology.');

define('TEXT_SAFE_SHOPPING3', '<b>FEEDBACK/PROBLEMS?</b><br>Your comments will help us to improve our checkout process.<br><a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">Contact us</a>');



define('TEXT_PASSWORD_FORGOTTEN', 'Password forgotten? Click here.');

define('TEXT_LOGIN_ERROR', '<font color="#ff0000"><b>ERROR:</b></font> No match for 'E-Mail Address' and/or 'Password'.');

define('TEXT_VISITORS_CART', '<font color="#ff0000"><b>NOTE:</b></font> Your &quot;Visitors Cart&quot; contents will be merged with your &quot;Members Cart&quot; contents once you have logged on. <a href="javascript:session_win();">[More Info]</a>');

?>


Let me know of any problems.
delaen
Oh, and if anyone finds any bugs in it, please let me know.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.