shipping.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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
  11. use fecshop\app\apphtml5\helper\Format;
  12. ?>
  13. <?php $shippings = $parentThis['shippings']; ?>
  14. <div class="onestepcheckout-shipping-method">
  15. <p class="onestepcheckout-numbers onestepcheckout-numbers-2"><?= Yii::$service->page->translate->__('Shipping Method') ?></p>
  16. <div class="onestepcheckout-shipping-method-block">
  17. <dl class="shipment-methods">
  18. <?php if(!empty($shippings) && is_array($shippings)): ?>
  19. <?php foreach($shippings as $shipping): ?>
  20. <div class="shippingmethods">
  21. <div class="flatrate"><?= Yii::$service->page->translate->__($shipping['label']) ?></div>
  22. <div>
  23. <input data-role="none" <?= $shipping['checked'] ? 'checked="checked"' : '' ?> type="radio" id="s_method_flatrate_flatrate<?= $shipping['shipping_i'] ?>" value="<?= $shipping['method'] ?>" class="validate-one-required-by-name" name="shipping_method">
  24. <label for="s_method_flatrate_flatrate<?= $shipping['shipping_i'] ?>"><?= $shipping['name'] ?>
  25. <strong>
  26. <span class="price"><?= $shipping['symbol'] ?><?= Format::price($shipping['cost']); ?></span>
  27. </strong>
  28. </label>
  29. </div>
  30. </div>
  31. <?php endforeach; ?>
  32. <?php endif; ?>
  33. </dl>
  34. </div>
  35. </div>