Guest User

Untitled

a guest
Apr 25th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.12 KB | None | 0 0
  1. <li id="shipping" class="checkout-shipping-address" data-bind="fadeVisible: visible()">
  2. <div class="step-title" data-bind="i18n: 'Shipping Address'" data-role="title"></div>
  3. <div id="checkout-step-shipping"
  4. class="step-content"
  5. data-role="content">
  6.  
  7. <!-- ko if: (!quoteIsVirtual) -->
  8. <!-- ko foreach: getRegion('customer-email') -->
  9. <!-- ko template: getTemplate() --><!-- /ko -->
  10. <!--/ko-->
  11. <!--/ko-->
  12.  
  13. <!-- ko foreach: getRegion('address-list') -->
  14. <!-- ko template: getTemplate() --><!-- /ko -->
  15. <!--/ko-->
  16.  
  17. <!-- ko foreach: getRegion('address-list-additional-addresses') -->
  18. <!-- ko template: getTemplate() --><!-- /ko -->
  19. <!--/ko-->
  20.  
  21. <!-- Address form pop up -->
  22. <!-- ko if: (!isFormInline) -->
  23. <button type="button"
  24. data-bind="click: showFormPopUp, visible: !isNewAddressAdded()"
  25. class="action action-show-popup">
  26. <span data-bind="i18n: 'New Address'"></span></button>
  27. <div id="opc-new-shipping-address" data-bind="visible: isFormPopUpVisible()">
  28. <!-- ko template: 'Magento_Checkout/shipping-address/form' --><!-- /ko -->
  29. </div>
  30. <!-- /ko -->
  31.  
  32. <!-- ko foreach: getRegion('before-form') -->
  33. <!-- ko template: getTemplate() --><!-- /ko -->
  34. <!--/ko-->
  35.  
  36. <!-- Inline address form -->
  37. <!-- ko if: (isFormInline) -->
  38. <!-- ko template: 'Magento_Checkout/shipping-address/form' --><!-- /ko -->
  39. <!-- /ko -->
  40.  
  41. <!-- Inline Billing address form -->
  42. <!-- ko foreach: getRegion('billing-address') -->
  43. <!-- ko template: getTemplate() --><!-- /ko -->
  44. <!-- /ko -->
  45. </div>
  46.  
  47. <!--ko foreach: { data: rates(), as: 'method'}-->
  48. <tr class="row" data-bind="click: $parent.selectShippingMethod">
  49. <td class="col col-method">
  50. <!-- ko ifnot: method.error_message -->
  51. <!-- ko if: $parent.rates().length == 1 -->
  52. <input class="radio"
  53. type="radio"
  54. data-bind="attr: {
  55. checked: $parent.rates().length == 1,
  56. 'value' : method.carrier_code + '_' + method.method_code,
  57. 'id': 's_method_' + method.method_code,
  58. 'aria-labelledby': 'label_method_' + method.method_code + '_' + method.carrier_code + ' ' + 'label_carrier_' + method.method_code + '_' + method.carrier_code
  59. }" />
  60. <!-- /ko -->
  61. <!--ko ifnot: ($parent.rates().length == 1)-->
  62. <input type="radio"
  63. data-bind="
  64. value: method.carrier_code + '_' + method.method_code,
  65. checked: $parent.isSelected,
  66. attr: {
  67. 'id': 's_method_' + method.carrier_code + '_' + method.method_code,
  68. 'aria-labelledby': 'label_method_' + method.method_code + '_' + method.carrier_code + ' ' + 'label_carrier_' + method.method_code + '_' + method.carrier_code
  69. },
  70. click: $parent.selectShippingMethod"
  71. class="radio"/>
  72. <!--/ko-->
  73. <!-- /ko -->
  74. </td>
  75. <td class="col col-price">
  76. <!-- ko foreach: $parent.getRegion('price') -->
  77. <!-- ko template: getTemplate() --><!-- /ko -->
  78. <!-- /ko -->
  79. </td>
  80.  
  81. <td class="col col-method"
  82. data-bind="text: method.method_title, attr: {'id': 'label_method_' + method.method_code + '_' + method.carrier_code}"></td>
  83.  
  84. <td class="col col-carrier"
  85. data-bind="text: method.carrier_title, attr: {'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code}"></td>
  86. </tr>
  87.  
  88. <!-- ko if: method.error_message -->
  89. <tr class="row row-error">
  90. <td class="col col-error" colspan="4">
  91. <div class="message error">
  92. <div data-bind="text: method.error_message"></div>
  93. </div>
  94. <span class="no-display">
  95. <input type="radio" data-bind="attr: {'value' : method.method_code, 'id': 's_method_' + method.method_code}"/>
  96. </span>
  97. </td>
  98. </tr>
  99. <!-- /ko -->
  100.  
  101. <!-- /ko -->
  102. </tbody>
  103. </table>
  104. </div>
  105.  
  106. <div id="onepage-checkout-shipping-method-additional-load">
  107. <!-- ko foreach: getRegion('shippingAdditional') -->
  108. <!-- ko template: getTemplate() --><!-- /ko -->
  109. <!-- /ko -->
  110. </div>
  111. <!-- ko if: errorValidationMessage().length > 0 -->
  112. <div class="message notice">
  113. <span><!-- ko text: errorValidationMessage()--><!-- /ko --></span>
  114. </div>
  115. <!-- /ko -->
  116. <div class="actions-toolbar" id="shipping-method-buttons-container">
  117. <div class="primary">
  118. <button data-role="opc-continue" type="submit" class="button action continue primary">
  119. <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
  120. </button>
  121. </div>
  122. </div>
  123. </form>
  124. <!-- /ko -->
  125. <!-- 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 -->
  126. </div>
  127. </div>
Add Comment
Please, Sign In to add comment