Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

log in box


jlewis01

Recommended Posts

Posted
i have seen on other live cart pages where they have included a login box in the right column, how do i do that?

 

Theres a contribution that does this, search the contribution area and youll find it.

  • 2 years later...
Posted

Hi guys! I want to make the login box.. when customer logs in the box change from login to display the customer name and a log out button. Does anyone know how to do this? Are there any contribution I can use?

 

Thanks so much :wub: B) ^_^

"I am not a Newbie but I am not an Expert either..."
"Lets learn about osCommerce together!..."
Posted

Never mind..I have found what I've been looking for. If anyone want a login box that shows the member's name, Go here.

"I am not a Newbie but I am not an Expert either..."
"Lets learn about osCommerce together!..."
Posted

Having a small problem with the loginbox. Can anyone help me?

 

<!-- loginbox //-->
<?php
   if (!tep_session_is_registered('customer_id')) {
?>
         <tr>
           <td>
<?php
   $info_box_contents = array();
   $info_box_contents[] = array('align' => 'left',
                                'text'  => BOX_LOGINBOX_HEADING
                               );
   new infoBoxHeading($info_box_contents, false, false);
   $loginboxcontent = "
           <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
           <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\">
             <tr>
               <td align=\"left\" class=\"main\">
                 " . BOX_LOGINBOX_EMAIL . "
               </td>
             </tr>
             <tr>
               <td align=\"left\" class=\"main\">
                 <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\">
               </td>
             </tr>
             <tr>
               <td align=\"left\" class=\"main\">
                 " . BOX_LOGINBOX_PASSWORD . "
               </td>
             </tr>
             <tr>
               <td align=\"left\" class=\"main\">
                 <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\"
               </td>
             </tr>
             <tr>
               <td class=\"main\" align=\"center\">
                 " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . "
               </td>
             </tr>
           </form>
           </table>
             ";

   $info_box_contents = array();
   $info_box_contents[] = array('align' => 'center',
                                'text'  => $loginboxcontent
                               );
   new infoBox($info_box_contents);
?>
           </td>
         </tr>
<?php
 }
 else
 {
 // If you want to display anything when the user IS logged in, put it
 // in here...  Possibly a "You are logged in as :" box or something.
 }
?><!-- loginbox_eof //-->

 

What is the code to display "You are logged in as : Member's Name" ??

 

Any help would be much appreciated. Thanks :rolleyes: :wub:

"I am not a Newbie but I am not an Expert either..."
"Lets learn about osCommerce together!..."

Archived

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

×
×
  • Create New...