<?php if ($i == 0 && !$customer_logged && $simple_customer_action_register == Simple::REGISTER_USER_CHOICE) { ?>
Which generates a "syntax error: unexpected end of file on line 162" which is the end of the template file
<?php } ?>
.<?php if ($i == 0 && !$customer_logged && $simple_customer_action_register == Simple::REGISTER_USER_CHOICE) { } ?>
Breaks the page.<?php if ($i == 0 && !$customer_logged && $simple_customer_action_register == Simple::REGISTER_USER_CHOICE) ?>
Breaks the page.<?php $i = 0; ?>
<?php if ($i == 0 && !$customer_logged && $simple_customer_action_register == Simple::REGISTER_USER_CHOICE) { ?>
<tr>
<td class="simplecheckout-customer-left">
</td>
<td class="simplecheckout-customer-right">
<label><input type="radio" name="register" id="myRadio" value="1" <?php echo $register == 1 ? 'checked="checked"' : ''; ?>reload="customer_register" /><b><?php echo $text_yes ?></b> <b><?php echo $text_register; ?></b> </label></br>
<p><?php echo $text_register_account; ?></p>
<label><input type="radio" name="register" id="myRadio2" value="0" <?php echo $register == 0 ? 'checked="checked"' : ''; ?>reload="customer_not_register" /><b><?php echo $text_no ?> <?php echo $text_guest; ?></b></label>
</td>
</tr>
<?php $user_choice = true; ?>
<?php $i++ ?>
The code determines if a user is already logged in to his account.<?php ?>
after
<?php $i++ ?>
<?php $i = 0; ?>
<?php if ($i == 0 && !$customer_logged && $simple_customer_action_register == Simple::REGISTER_USER_CHOICE) { ?>
<tr>
<td class="simplecheckout-customer-left">
</td>
<td class="simplecheckout-customer-right">
<label><input type="radio" name="register" id="myRadio" value="1" <?php echo $register == 1 ? 'checked="checked"' : ''; ?>reload="customer_register" /><b><?php echo $text_yes ?></b> <b><?php echo $text_register; ?></b> </label></br>
<p><?php echo $text_register_account; ?></p>
<label><input type="radio" name="register" id="myRadio2" value="0" <?php echo $register == 0 ? 'checked="checked"' : ''; ?>reload="customer_not_register" /><b><?php echo $text_no ?> <?php echo $text_guest; ?></b></label>
</td>
</tr>
<?php $user_choice = true; ?>
<?php $i++ ?>
<?php } ?>
Then I get no syntax error, just a "Class 'Simple' not found" error