Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
shipping.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
16 ?>
17 <form action="<?= /* @escapeNotVerified */ $block->getPostActionUrl() ?>" method="post" id="shipping_method_form" class="form multicheckout shipping">
18  <?php foreach ($block->getAddresses() as $_index => $_address): ?>
19  <div class="block block-shipping">
20  <div class="block-title"><strong><?= /* @escapeNotVerified */ __('Address %1 <span>of %2</span>', ($_index+1), $block->getAddressCount()) ?></strong></div>
21  <div class="block-content">
22  <div class="box box-shipping-address">
23  <strong class="box-title">
24  <span><?= /* @escapeNotVerified */ __('Shipping To') ?></span>
25  <a href="<?= /* @escapeNotVerified */ $block->getAddressEditUrl($_address) ?>" class="action edit"><span><?= /* @escapeNotVerified */ __('Change') ?></span></a>
26  </strong>
27  <div class="box-content">
28  <address><?= /* @escapeNotVerified */ $_address->format('html') ?></address>
29  </div>
30  </div>
31  <div class="box box-shipping-method">
32  <strong class="box-title">
33  <span><?= /* @escapeNotVerified */ __('Shipping Method') ?></span>
34  </strong>
35  <div class="box-content">
36  <?php if (!($_shippingRateGroups = $block->getShippingRates($_address))): ?>
37  <p><?= /* @escapeNotVerified */ __('Sorry, no quotes are available for this order right now.') ?></p>
38  <?php else: ?>
39  <dl class="items methods-shipping">
40  <?php $_sole = count($_shippingRateGroups) == 1; foreach ($_shippingRateGroups as $code => $_rates): ?>
41  <dt class="item-title"><?= $block->escapeHtml($block->getCarrierName($code)) ?></dt>
42  <dd class="item-content">
43  <fieldset class="fieldset">
44  <legend class="legend">
45  <span><?= $block->escapeHtml($block->getCarrierName($code)) ?></span>
46  </legend><br>
47  <?php $_sole = $_sole && count($_rates) == 1; foreach ($_rates as $_rate): ?>
48  <div class="field choice">
49  <?php if ($_rate->getErrorMessage()): ?>
50  <strong><?= $block->escapeHtml($_rate->getCarrierTitle()) ?>: <?= $block->escapeHtml($_rate->getErrorMessage()) ?></strong>
51  <?php else: ?>
52  <div class="control">
53  <?php if ($_sole) : ?>
54  <input type="radio" name="shipping_method[<?= /* @escapeNotVerified */ $_address->getId() ?>]" value="<?= $block->escapeHtml($_rate->getCode()) ?>" id="s_method_<?= /* @escapeNotVerified */ $_address->getId() ?>_<?= /* @escapeNotVerified */ $_rate->getCode() ?>" class="radio solo method" checked="checked"/>
55  <?php else: ?>
56  <input type="radio" name="shipping_method[<?= /* @escapeNotVerified */ $_address->getId() ?>]" value="<?= /* @escapeNotVerified */ $_rate->getCode() ?>" id="s_method_<?= /* @escapeNotVerified */ $_address->getId() ?>_<?= /* @escapeNotVerified */ $_rate->getCode() ?>"<?php if($_rate->getCode()===$block->getAddressShippingMethod($_address)) echo ' checked="checked"' ?> class="radio" />
57  <?php endif; ?>
58  </div>
59  <label for="s_method_<?= /* @escapeNotVerified */ $_address->getId() ?>_<?= /* @escapeNotVerified */ $_rate->getCode() ?>"><?= $block->escapeHtml($_rate->getMethodTitle()) ?>
60  <?php $_excl = $block->getShippingPrice($_address, $_rate->getPrice(), $this->helper('Magento\Tax\Helper\Data')->displayShippingPriceIncludingTax()); ?>
61  <?php $_incl = $block->getShippingPrice($_address, $_rate->getPrice(), true); ?>
62  <?php if ($this->helper('Magento\Tax\Helper\Data')->displayShippingBothPrices() && $_incl != $_excl): ?>
63  <span class="price-including-tax" data-label="<?= /* @escapeNotVerified */ __('Incl. Tax') ?>">
64  <?php endif; ?>
65  <?= /* @escapeNotVerified */ $_incl ?>
66  <?php if ($this->helper('Magento\Tax\Helper\Data')->displayShippingBothPrices() && $_incl != $_excl): ?>
67  </span>
68  <?php endif; ?>
69  <?php if ($this->helper('Magento\Tax\Helper\Data')->displayShippingBothPrices() && $_incl != $_excl): ?>
70  <span class="price-excluding-tax" data-label="<?= /* @escapeNotVerified */ __('Excl. Tax') ?>"><?= /* @escapeNotVerified */ $_excl ?></span>
71  <?php endif; ?>
72  </label>
73  <?php endif ?>
74  </div>
75  <?php endforeach; ?>
76  </fieldset>
77  </dd>
78  <?php endforeach; ?>
79  </dl>
80  <?php endif; ?>
81  <?= /* @escapeNotVerified */ $block->getItemsBoxTextAfter($_address) ?>
82  </div>
83  </div>
84  <div class="box box-items">
85  <strong class="box-title">
86  <span><?= /* @escapeNotVerified */ __('Items') ?></span>
87  <a href="<?= /* @escapeNotVerified */ $block->getItemsEditUrl($_address) ?>" class="action edit"><span><?= /* @escapeNotVerified */ __('Edit Items') ?></span></a>
88  </strong>
89  <div class="box-content">
90  <div class="table-wrapper">
91  <table class="items data table" id="shipping-table-<?= /* @escapeNotVerified */ $_address->getId() ?>">
92  <caption class="table-caption"><?= /* @escapeNotVerified */ __('Items') ?></caption>
93  <thead>
94  <tr>
95  <th class="col item" scope="col"><?= /* @escapeNotVerified */ __('Product Name') ?></th>
96  <th class="col qty" scope="col"><?= /* @escapeNotVerified */ __('Qty') ?></th>
97  </tr>
98  </thead>
99  <tbody>
100  <?php foreach ($block->getAddressItems($_address) as $_item): ?>
101  <tr>
102  <td class="col item" data-th="<?= $block->escapeHtml(__('Product Name')) ?>"><?= $block->getItemHtml($_item->getQuoteItem()) ?></td>
103  <td class="col qty" data-th="<?= $block->escapeHtml(__('Qty')) ?>"><?= /* @escapeNotVerified */ $_item->getQty() ?></td>
104  </tr>
105  <?php endforeach; ?>
106  </tbody>
107  </table>
108  </div>
109  </div>
110  </div>
111  </div>
112  </div>
113  <?php endforeach; ?>
114  <?= $block->getChildHtml('checkout_billing_items') ?>
115  <div class="actions-toolbar">
116  <div class="primary">
117  <button class="action primary continue" type="submit"><span><?= /* @escapeNotVerified */ __('Continue to Billing Information') ?></span></button>
118  </div>
119  <div class="secondary">
120  <a href="<?= /* @escapeNotVerified */ $block->getBackUrl() ?>" class="action back"><span><?= /* @escapeNotVerified */ __('Back to Select Addresses') ?></span></a>
121  </div>
122  </div>
123 </form>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
foreach( $_shippingRateGroups as $code=> $_rates)( $block->getCarrierName( $code)) ?></dt >< dd class $_sole
Definition: shipping.phtml:47
$_shippingRateGroups
Definition: form.phtml:11
__()
Definition: __.php:13
jquery extjs ext tree mage adminhtml form
Definition: tree.phtml:41
$block
Definition: block.php:8
if($this->helper('Magento\Tax\Helper\Data') ->displayShippingBothPrices() && $_incl !=$_excl) if( $this->helper( 'Magento\Tax\Helper\Data') ->displayShippingBothPrices() &&$_incl !=$_excl)( 'Excl. Tax') ?>"><? endif
Definition: shipping.phtml:69
$_item
Definition: default.phtml:11
$_incl
Definition: shipping.phtml:61
$_excl
Definition: shipping.phtml:60
endif endforeach
Definition: shipping.phtml:75
$_rates
Definition: matrix.phtml:18
$code
Definition: info.phtml:12