shipping-rates.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!--
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. -->
  7. <form id="co-shipping-method-form" data-bind="blockLoader: isLoading, visible: isVisible()">
  8. <p class="field note" data-bind="visible: (!isLoading() && shippingRates().length <= 0)">
  9. <!-- ko text: $t('Sorry, no quotes are available for this order at this time')--><!-- /ko -->
  10. </p>
  11. <fieldset class="fieldset rate" data-bind="visible: (shippingRates().length > 0)">
  12. <dl class="items methods" data-bind="foreach: shippingRateGroups">
  13. <dt class="item-title"><span data-bind="text: $data"></span></dt>
  14. <dd class="item-options" data-bind="foreach: { data:$parent.getRatesForGroup($data), as: 'method' }">
  15. <div data-bind="css: {'field choice item': available, 'message error': !available} ">
  16. <!-- ko ifnot: (available) -->
  17. <div data-bind="text: error_message"></div>
  18. <!-- /ko -->
  19. <!-- ko if: (available) -->
  20. <input type="radio"
  21. class="radio"
  22. data-bind="
  23. click: $parents[1].selectShippingMethod,
  24. checked: $parents[1].selectedShippingMethod,
  25. attr: {
  26. value: carrier_code + '_' + method_code,
  27. id: 's_method_' + carrier_code + '_' + method_code
  28. }
  29. "/>
  30. <label class="label" data-bind="attr: {for: 's_method_' + carrier_code + '_' + method_code}">
  31. <!-- ko text: $data.method_title --><!-- /ko -->
  32. <each args="element.getRegion('price')" render="" />
  33. </label>
  34. <!-- /ko -->
  35. </div>
  36. </dd>
  37. </dl>
  38. </fieldset>
  39. </form>