address.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. ?>
  10. <?php $address_list = $parentThis['address_list']; ?>
  11. <?php $cart_address_id = $parentThis['cart_address_id']; ?>
  12. <?php $country_select = $parentThis['country_select']; ?>
  13. <?php $state_html = $parentThis['state_html']; ?>
  14. <?php $cart_address = $parentThis['cart_address']; ?>
  15. <div id="billing_address">
  16. <ul>
  17. <li>
  18. <p class="onestepcheckout-numbers onestepcheckout-numbers-1"><?= Yii::$service->page->translate->__('Shipping Address');?></p>
  19. </li>
  20. <li>
  21. <div>
  22. <ul id="billing_address_list" class="billing_address_list_new" style="">
  23. <li class="clearfix">
  24. <div class="input-box input-firstname">
  25. <label for="billing:firstname"><?= Yii::$service->page->translate->__('First Name');?><span class="required">*</span></label>
  26. <input value="<?= $cart_address['first_name'] ?>" id="billing:firstname" name="billing[first_name]" class="required-entry input-text" type="text">
  27. </div>
  28. <div class="input-box input-lastname">
  29. <label for="billing:lastname"><?= Yii::$service->page->translate->__('Last Name');?> <span class="required">*</span></label>
  30. <input value="<?= $cart_address['last_name'] ?>" id="billing:lastname" name="billing[last_name]" class="required-entry input-text" type="text">
  31. </div>
  32. <div class="clear"></div>
  33. </li>
  34. <li class="clearfix">
  35. <div style="width:100%;" class=" input-box input-email">
  36. <label for="billing:email"><?= Yii::$service->page->translate->__('Email Address');?> <span class="required">*</span></label>
  37. <input style="width:83%;" value="<?= $cart_address['email'] ?>" class="validate-email required-entry input-text" title="Email Address" id="billing:email" name="billing[email]" type="text">
  38. <div class="customer_email_validation">
  39. </div>
  40. </div>
  41. </li>
  42. <li class="clearfix">
  43. <div style="width:100%;" class="input-box input-telephone">
  44. <label for="billing:telephone"><?= Yii::$service->page->translate->__('Telephone');?> <span class="required">*</span></label>
  45. <input style="width:83%;" value="<?= $cart_address['telephone'] ?>" id="billing:telephone" class="required-entry input-text" title="Telephone" name="billing[telephone]" type="text">
  46. </div>
  47. </li>
  48. <li class="clearfix">
  49. <div class="input-box input-address">
  50. <label for="billing:street1"><?= Yii::$service->page->translate->__('Street');?><span class="required">*</span></label>
  51. <input value="<?= $cart_address['street1'] ?>" class="required-entry input-text onestepcheckout-address-line" id="billing:street1" name="billing[street1]" title="Street Address 1" type="text">
  52. <br>
  53. <input value="<?= $cart_address['street2'] ?>" class="input-text onestepcheckout-address-line" id="billing:street2" name="billing[street2]" title="Street Address 2" type="text">
  54. </div>
  55. </li>
  56. <li class="clearfix">
  57. <div class="input-box input-country">
  58. <label for="billing:country"><?= Yii::$service->page->translate->__('Country');?> <span class="required">*</span></label>
  59. <select title="Country" class="billing_country validate-select" id="billing:country" name="billing[country]">
  60. <?= $country_select ?>
  61. </select>
  62. </div>
  63. </li>
  64. <li class="clearfix">
  65. <div class="input-box input-state"><label for="billing:state" class="required"><?= Yii::$service->page->translate->__('State');?><span class="required">*</span></label>
  66. <div class="state_html">
  67. <?= $state_html ?>
  68. </div>
  69. </div>
  70. </li>
  71. <li class="clearfix">
  72. <div class="input-box input-city">
  73. <label for="billing:city"><?= Yii::$service->page->translate->__('City');?> <span class="required">*</span></label>
  74. <input value="<?= $cart_address['city'] ?>" id="billing:city" class="required-entry input-text" title="City" name="billing[city]" type="text">
  75. </div>
  76. </li>
  77. <li class="clearfix">
  78. <div class="input-box input-zip">
  79. <label for="billing:zip"><?= Yii::$service->page->translate->__('Zip Code');?> <span class="required">*</span></label>
  80. <input value="<?= $cart_address['zip'] ?>" class="validate-zip-international required-entry input-text" id="billing:zip" name="billing[zip]" title="Zip Code" type="text">
  81. </div>
  82. </li>
  83. <?php if(!Yii::$app->user->isGuest): ?>
  84. <!--
  85. <li class="control">
  86. <input class="save_in_address_book checkbox" id="billing:save_in_address_book" title="Save in address book" value="1" name="billing[save_in_address_book]" checked="checked" type="checkbox"><label for="billing:save_in_address_book">Save in address book</label>
  87. </li>
  88. -->
  89. <?php else: ?>
  90. <li class="clearfix">
  91. <div class="input-box">
  92. <input value="1" name="create_account" id="id_create_account" type="checkbox">
  93. <label style="display:inline" for="id_create_account"><?= Yii::$service->page->translate->__('Create an account for later use');?></label>
  94. </div>
  95. <div class="label_create_account">
  96. </div>
  97. </li>
  98. <li style="display: none;" id="onestepcheckout-li-password">
  99. <div class="input-box input-password">
  100. <label for="billing:customer_password"><?= Yii::$service->page->translate->__('Password');?></label><br>
  101. <input name="billing[customer_password]" id="billing:customer_password" title="Password" value="" class="validate-password input-text customer_password" type="password">
  102. </div>
  103. <div class="input-box input-password">
  104. <label for="billing:confirm_password"><?= Yii::$service->page->translate->__('Confirm Password');?></label><br>
  105. <input name="billing[confirm_password]" title="Confirm Password" id="billing:confirm_password" value="" class="validate-password input-text customer_confirm_password" type="password">
  106. </div>
  107. </li>
  108. <?php endif; ?>
  109. </ul>
  110. </div>
  111. </li>
  112. </ul>
  113. </div>