I had the same problem. It is because your ENABLE_SSL_CATALOG in your admin/includes/configure.php variable is set to ''. Set it to either 'true' or 'false'
I also had to modify the tpl_login_as_customer_default.php file to get the values to display on the page by adding adding the missing php to ? (<?php echo). FYI, the state will not display b/c the query in the modified customers.php needs to join to the TABLE_ZONES to get it and pass it in, but I didn't care, so I left it alone.
Great Add-on though! Thanks for creating it!!!
Code:
<?php
$email = $_POST['email_addr'];
$pass = $_POST['password'];
$first_name = $_POST['firstname'];
$last_name = $_POST['lastname'];
$c_company = $_POST['company'];
$c_id = $_POST['cid'];
$c_address = $_POST['address'];
$c_city = $_POST['city'];
$c_state = $_POST['cstate'];
$c_zipcode = $_POST['zipcode'];
$c_telephone = $_POST['phone'];
$url = $_POST['s_url'];
$token = $_SESSION['securityToken'];
$url .= "index.php?main_page=login&action=process";
?>
<div align='center'>
<table border='0'>
<tr>
<td colspan ='3'>Are you sure you want to log in as:</td>
</tr>
<tr>
<td align='left'><b><?php echo ENTRY_FIRST_NAME; ?> </b> <?php echo $first_name; ?></td>
<td align='left' colspan='2'><b><?php echo ENTRY_LAST_NAME; ?> </b><?php echo $last_name; ?></td>
</tr>
<tr>
<td colspan ='3' align='left'><b><?php echo ENTRY_COMPANY; ?></b><?php echo $c_company; ?></td>
</tr>
<tr>
<td colspan='3' align='left'><b><?php echo ENTRY_STREET_ADDRESS; ?></b><?php echo $c_address; ?></td>
</tr>
<tr>
<td align='left'><b><?php echo ENTRY_CITY; ?></b><?php echo $c_city; ?></td>
<td><b><?php echo ENTRY_STATE; ?></b><?php echo $c_state; ?></td>
<td> <b><?php echo ENTRY_POST_CODE; ?></b><?php echo $c_zipcode; ?></td>
</tr>
<tr>
<td align='left' colspan='3'><b><?php echo ENTRY_TELEPHONE_NUMBER; ?></b><?php echo $c_telephone; ?></td>
</tr>
<tr>
<td align='left' colspan='3'><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b><?php echo $email; ?></td>
</tr>
<tr>
<td align='center' colspan='3'>
<?php
echo "
<form name='form1' action='$url' method='post'>
<input type='hidden' name='email_address' id='login-email-address' value='$email' />
<input type='hidden' name='password' id='login-password' value='$pass' />
<input type='hidden' name='password' id='login-password' value='$pass' />
<input type='hidden' name='securityToken' id='securityToken' value='$token' />
<input type='submit' value='Place Order' />
<input type='button' value='Cancel Order' onclick='window.close()'>
</form>
</td>
</tr>
</table>
</div>
";
?>
Bookmarks