/vendor/magento/module-checkout/view/frontend/web/template/shipping.html

https://gitlab.com/yousafsyed/easternglamor · HTML · 161 lines · 95 code · 14 blank · 52 comment · 0 complexity · 1b3f61181d0a69e22abf725424b165d7 MD5 · raw file

  1. <!--
  2. /**
  3. * Copyright © 2016 Magento. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. -->
  7. <li id="shipping" class="checkout-shipping-address" data-bind="fadeVisible: visible()">
  8. <div class="step-title" data-bind="i18n: 'Shipping Address'" data-role="title"></div>
  9. <div id="checkout-step-shipping"
  10. class="step-content"
  11. data-role="content">
  12. <!-- ko if: (!quoteIsVirtual) -->
  13. <!-- ko foreach: getRegion('customer-email') -->
  14. <!-- ko template: getTemplate() --><!-- /ko -->
  15. <!--/ko-->
  16. <!--/ko-->
  17. <!-- ko foreach: getRegion('address-list') -->
  18. <!-- ko template: getTemplate() --><!-- /ko -->
  19. <!--/ko-->
  20. <!-- ko foreach: getRegion('address-list-additional-addresses') -->
  21. <!-- ko template: getTemplate() --><!-- /ko -->
  22. <!--/ko-->
  23. <!-- Address form pop up -->
  24. <!-- ko if: (!isFormInline) -->
  25. <button type="button"
  26. data-bind="click: showFormPopUp, visible: !isNewAddressAdded()"
  27. class="action action-show-popup">
  28. <span data-bind="i18n: 'New Address'"></span></button>
  29. <div id="opc-new-shipping-address" data-bind="visible: isFormPopUpVisible()">
  30. <!-- ko template: 'Magento_Checkout/shipping-address/form' --><!-- /ko -->
  31. </div>
  32. <!-- /ko -->
  33. <!-- ko foreach: getRegion('before-form') -->
  34. <!-- ko template: getTemplate() --><!-- /ko -->
  35. <!--/ko-->
  36. <!-- Inline address form -->
  37. <!-- ko if: (isFormInline) -->
  38. <!-- ko template: 'Magento_Checkout/shipping-address/form' --><!-- /ko -->
  39. <!-- /ko -->
  40. </div>
  41. </li>
  42. <!--Shipping method template-->
  43. <li id="opc-shipping_method"
  44. class="checkout-shipping-method"
  45. data-bind="fadeVisible: visible(), blockLoader: isLoading"
  46. role="presentation">
  47. <div class="checkout-shipping-method">
  48. <div class="step-title" data-bind="i18n: 'Shipping Methods'" data-role="title"></div>
  49. <!-- ko foreach: getRegion('before-shipping-method-form') -->
  50. <!-- ko template: getTemplate() --><!-- /ko -->
  51. <!-- /ko -->
  52. <div id="checkout-step-shipping_method"
  53. class="step-content"
  54. data-role="content"
  55. role="tabpanel"
  56. aria-hidden="false">
  57. <!-- ko if: rates().length -->
  58. <form class="form methods-shipping" id="co-shipping-method-form" data-bind="submit: setShippingInformation" novalidate="novalidate">
  59. <div id="checkout-shipping-method-load">
  60. <table class="table-checkout-shipping-method">
  61. <thead>
  62. <tr class="row">
  63. <th class="col col-method" data-bind="i18n: 'Select Method'"></th>
  64. <th class="col col-price" data-bind="i18n: 'Price'"></th>
  65. <th class="col col-method" data-bind="i18n: 'Method Title'"></th>
  66. <th class="col col-carrier" data-bind="i18n: 'Carrier Title'"></th>
  67. </tr>
  68. </thead>
  69. <tbody>
  70. <!--ko foreach: { data: rates(), as: 'method'}-->
  71. <tr class="row" data-bind="click: $parent.selectShippingMethod">
  72. <td class="col col-method">
  73. <!-- ko ifnot: method.error_message -->
  74. <!-- ko if: $parent.rates().length == 1 -->
  75. <input name="shipping_method"
  76. class="radio"
  77. type="radio"
  78. data-bind="attr: {
  79. checked: $parent.rates().length == 1,
  80. 'value' : method.carrier_code + '_' + method.method_code,
  81. 'id': 's_method_' + method.method_code,
  82. 'aria-labelledby': 'label_method_' + method.method_code + '_' + method.carrier_code + ' ' + 'label_carrier_' + method.method_code + '_' + method.carrier_code
  83. }" />
  84. <!-- /ko -->
  85. <!--ko ifnot: ($parent.rates().length == 1)-->
  86. <input name="shipping_method" type="radio"
  87. data-bind="
  88. value: method.carrier_code + '_' + method.method_code,
  89. checked: $parent.isSelected,
  90. attr: {
  91. 'id': 's_method_' + method.carrier_code + '_' + method.method_code,
  92. 'aria-labelledby': 'label_method_' + method.method_code + '_' + method.carrier_code + ' ' + 'label_carrier_' + method.method_code + '_' + method.carrier_code
  93. },
  94. click: $parent.selectShippingMethod"
  95. class="radio"/>
  96. <!--/ko-->
  97. <!-- /ko -->
  98. </td>
  99. <td class="col col-price">
  100. <!-- ko foreach: $parent.getRegion('price') -->
  101. <!-- ko template: getTemplate() --><!-- /ko -->
  102. <!-- /ko -->
  103. </td>
  104. <td class="col col-method"
  105. data-bind="text: method.method_title, attr: {'id': 'label_method_' + method.method_code + '_' + method.carrier_code}"></td>
  106. <td class="col col-carrier"
  107. data-bind="text: method.carrier_title, attr: {'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code}"></td>
  108. </tr>
  109. <!-- ko if: method.error_message -->
  110. <tr class="row row-error">
  111. <td class="col col-error" colspan="4">
  112. <div class="message error">
  113. <div data-bind="text: method.error_message"></div>
  114. </div>
  115. <span class="no-display">
  116. <input name="shipping_method" type="radio" data-bind="attr: {'value' : method.method_code, 'id': 's_method_' + method.method_code}"/>
  117. </span>
  118. </td>
  119. </tr>
  120. <!-- /ko -->
  121. <!-- /ko -->
  122. </tbody>
  123. </table>
  124. </div>
  125. <div id="onepage-checkout-shipping-method-additional-load">
  126. <!-- ko foreach: getRegion('shippingAdditional') -->
  127. <!-- ko template: getTemplate() --><!-- /ko -->
  128. <!-- /ko -->
  129. </div>
  130. <!-- ko if: errorValidationMessage().length > 0 -->
  131. <div class="message notice">
  132. <span><!-- ko text: errorValidationMessage()--><!-- /ko --></span>
  133. </div>
  134. <!-- /ko -->
  135. <div class="actions-toolbar" id="shipping-method-buttons-container">
  136. <div class="primary">
  137. <button data-role="opc-continue" type="submit" class="button action continue primary">
  138. <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
  139. </button>
  140. </div>
  141. </div>
  142. </form>
  143. <!-- /ko -->
  144. <!-- ko ifnot: rates().length > 0 --><div class="no-quotes-block"><!-- ko i18n: 'Sorry, no quotes are available for this order at this time'--><!-- /ko --></div><!-- /ko -->
  145. </div>
  146. </div>
  147. </li>