address.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 class=" input-box input-email">
  36. <label for="billing:email"><?= Yii::$service->page->translate->__('Email Address');?> <span class="required">*</span></label>
  37. <input 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>
  43. <div class="input-box input-telephone">
  44. <label for="billing:telephone"><?= Yii::$service->page->translate->__('Telephone');?> <span class="required">*</span></label>
  45. <input 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. <input value="<?= $cart_address['street2'] ?>" class="input-text onestepcheckout-address-line" id="billing:street2" name="billing[street2]" title="Street Address 2" type="text">
  53. </div>
  54. </li>
  55. <li class="clearfix">
  56. <div class="input-box input-country">
  57. <label for="billing:country"><?= Yii::$service->page->translate->__('Country');?> <span class="required">*</span></label>
  58. <select title="Country" class="billing_country validate-select" id="billing:country" name="billing[country]">
  59. <?= $country_select ?>
  60. </select>
  61. </div>
  62. </li>
  63. <li class="clearfix">
  64. <div class="input-box input-state"><label for="billing:state" class="required"><?= Yii::$service->page->translate->__('State');?><span class="required">*</span></label>
  65. <div class="state_html">
  66. <?= $state_html ?>
  67. </div>
  68. </div>
  69. </li>
  70. <li class="clearfix">
  71. <div class="input-box input-city">
  72. <label for="billing:city"><?= Yii::$service->page->translate->__('City');?> <span class="required">*</span></label>
  73. <input value="<?= $cart_address['city'] ?>" id="billing:city" class="required-entry input-text" title="City" name="billing[city]" type="text">
  74. </div>
  75. </li>
  76. <li class="clearfix">
  77. <div class="input-box input-zip">
  78. <label for="billing:zip"><?= Yii::$service->page->translate->__('Zip Code');?> <span class="required">*</span></label>
  79. <input value="<?= $cart_address['zip'] ?>" class="validate-zip-international required-entry input-text" id="billing:zip" name="billing[zip]" title="Zip Code" type="text">
  80. </div>
  81. </li>
  82. <?php if(!Yii::$app->user->isGuest): ?>
  83. <?php else: ?>
  84. <li class="clearfix">
  85. <div class="input-box">
  86. <input value="1" name="create_account" id="id_create_account" type="checkbox">
  87. <label style="display:inline" for="id_create_account"><?= Yii::$service->page->translate->__('Create an account for later use');?></label>
  88. </div>
  89. <div class="label_create_account">
  90. </div>
  91. </li>
  92. <li style="display: none;" id="onestepcheckout-li-password">
  93. <div class="input-box input-password">
  94. <label for="billing:customer_password"><?= Yii::$service->page->translate->__('Password');?></label>
  95. <input name="billing[customer_password]" id="billing:customer_password" title="Password" value="" class="validate-password input-text customer_password" type="password">
  96. </div>
  97. <div class="input-box input-password">
  98. <label for="billing:confirm_password"><?= Yii::$service->page->translate->__('Confirm Password');?></label>
  99. <input name="billing[confirm_password]" title="Confirm Password" id="billing:confirm_password" value="" class="validate-password input-text customer_confirm_password" type="password">
  100. </div>
  101. </li>
  102. <?php endif; ?>
  103. </ul>
  104. </div>
  105. </li>
  106. </ul>
  107. </div>