|
32 | 32 | */
|
33 | 33 | /** @var $this Mage_Checkout_Block_Onepage_Login */
|
34 | 34 | ?>
|
| 35 | +<?php $isAllowedGuestCheckout = $this->getQuote()->isAllowedGuestCheckout() ?> |
35 | 36 | <div class="col2-set">
|
36 | 37 | <?php echo $this->getChildHtml('login_before')?>
|
37 | 38 | <div class="col-1">
|
38 |
| - <h3><?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?><?php echo $this->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo $this->__('Register to Create an Account') ?><?php endif; ?></h3> |
39 |
| - <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?> |
| 39 | + <h3><?php if($isAllowedGuestCheckout): ?><?php echo $this->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo $this->__('Register to Create an Account') ?><?php endif; ?></h3> |
| 40 | + <?php if($isAllowedGuestCheckout): ?> |
40 | 41 | <p><?php echo $this->__('Register with us for future convenience:') ?></p>
|
41 | 42 | <?php else: ?>
|
42 | 43 | <p><strong><?php echo $this->__('Register and save time!') ?></strong><br />
|
|
46 | 47 | <li><?php echo $this->__('Easy access to your order history and status') ?></li>
|
47 | 48 | </ul>
|
48 | 49 | <?php endif; ?>
|
49 |
| - <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?> |
| 50 | + <?php if($isAllowedGuestCheckout): ?> |
50 | 51 | <ul class="form-list">
|
51 |
| - <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?> |
| 52 | + <?php if($isAllowedGuestCheckout): ?> |
52 | 53 | <li class="control">
|
53 | 54 | <input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_GUEST): ?> checked="checked"<?php endif; ?> class="radio" /><label for="login:guest"><?php echo $this->__('Checkout as Guest') ?></label>
|
54 | 55 | </li>
|
55 | 56 | <?php endif; ?>
|
56 | 57 | <li class="control">
|
57 |
| - <input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo $this->__('Register') ?></label> |
| 58 | + <input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$isAllowedGuestCheckout): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo $this->__('Register') ?></label> |
58 | 59 | </li>
|
59 | 60 | </ul>
|
60 | 61 | <h4><?php echo $this->__('Register and save time!') ?></h4>
|
|
100 | 101 | <div class="col-1">
|
101 | 102 | <div class="buttons-set">
|
102 | 103 | <p class="required"> </p>
|
103 |
| - <?php if ($this->getQuote()->isAllowedGuestCheckout()): ?> |
| 104 | + <?php if ($isAllowedGuestCheckout): ?> |
104 | 105 | <button id="onepage-guest-register-button" type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
105 | 106 | <?php elseif ($this->helper('checkout')->isCustomerMustBeLogged()): ?>
|
106 | 107 | <button id="onepage-guest-register-button" type="button" class="button" onclick="window.location='<?php echo $this->helper('checkout/url')->getRegistrationUrl();?>'"><span><span><?php echo $this->__('Register') ?></span></span></button>
|
|
0 commit comments