Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
overview.phtml
Go to the documentation of this file.
1 <?php
8 ?>
9 <?php $errors = $block->getCheckoutData()->getAddressErrors(); ?>
10 <?php foreach ($errors as $addressId => $error) : ?>
11  <div class="message message-error error">
12  <?= $block->escapeHtml($error); ?>
13  <?= $block->escapeHtml(__('Please see')); ?>
14  <a href="#<?= $block->escapeHtml($block->getCheckoutData()->getAddressAnchorName($addressId)); ?>">
15  <?= $block->escapeHtml(__('details below')); ?></a>.
16  </div>
17 <?php endforeach;?>
18 <form action="<?= $block->escapeUrl($block->getPostActionUrl()); ?>"
19  method="post"
20  id="review-order-form"
21  data-mage-init='{"orderOverview": {}, "validation":{}}'
22  class="form multicheckout order-review">
23  <?= /* @noEscape */ $block->getBlockHtml('formkey'); ?>
24  <div class="block block-billing">
25  <div class="block-title"><strong><?= $block->escapeHtml(__('Billing Information')); ?></strong></div>
26  <div class="block-content">
27  <div class="box box-billing-address">
28  <?php $address = $block->getBillingAddress() ?>
29  <strong class="box-title">
30  <span><?= $block->escapeHtml(__('Billing Address')); ?></span>
31  <a href="<?= $block->escapeUrl($block->getEditBillingAddressUrl($address)); ?>"
32  class="action edit"><span><?= $block->escapeHtml(__('Change')); ?></span></a>
33  </strong>
34  <div class="box-content">
35  <address>
36  <?= /* @noEscape */ $address->format('html') ?>
37  </address>
38  </div>
39  </div>
40  <div class="box box-billing-method">
41  <strong class="box-title">
42  <span><?= $block->escapeHtml(__('Payment Method')); ?></span>
43  <a href="<?= $block->escapeUrl($block->getEditBillingUrl()); ?>"
44  class="action edit"><span><?= $block->escapeHtml(__('Change')); ?></span></a>
45  </strong>
46  <div class="box-content">
47  <input type="hidden"
48  name="payment[cc_number]"
49  value="<?= $block->escapeHtml($block->getPayment()->getCcNumber()) ?>" />
50  <input type="hidden"
51  name="payment[cc_cid]"
52  value="<?= $block->escapeHtml($block->getPayment()->getCcCid()) ?>" />
53  <?= /* @noEscape */ $block->getPaymentHtml() ?>
54  </div>
55  </div>
56  </div>
57  </div>
58  <div class="block block-shipping">
59  <div class="block-title"><strong><?= $block->escapeHtml(__('Shipping Information')); ?></strong></div>
60  <?php $mergedCells = ($this->helper(Magento\Tax\Helper\Data::class)->displayCartBothPrices() ? 2 : 1); ?>
61  <?php foreach ($block->getShippingAddresses() as $index => $address) : ?>
62  <div class="block-content">
63  <a name="<?= $block->escapeHtml($block->getCheckoutData()
64  ->getAddressAnchorName($address->getId())); ?>"></a>
65  <div class="title">
66  <strong><?= $block->escapeHtml(__('Address')); ?> <?= $block->escapeHtml($index + 1); ?>
67  <span>
68  <?= $block->escapeHtml(__('of')); ?>
69  <?= $block->escapeHtml($block->getShippingAddressCount())?>
70  </span>
71  </strong>
72  </div>
73  <?php if ($error = $block->getCheckoutData()->getAddressError($address)) : ?>
74  <div class="error-description"><?= $block->escapeHtml($error); ?></div>
75  <?php endif;?>
76  <div class="box box-shipping-address">
77  <strong class="box-title">
78  <span><?= $block->escapeHtml(__('Shipping To')); ?></span>
79  <a href="<?= $block->escapeUrl($block->getEditShippingAddressUrl($address)); ?>"
80  class="action edit"><span><?= $block->escapeHtml(__('Change')); ?></span></a>
81  </strong>
82  <div class="box-content">
83  <address>
84  <?= /* @noEscape */ $address->format('html') ?>
85  </address>
86  </div>
87  </div>
88  <div class="box box-shipping-method">
89  <strong class="box-title">
90  <span><?= $block->escapeHtml(__('Shipping Method')); ?></span>
91  <a href="<?= $block->escapeUrl($block->getEditShippingUrl()); ?>"
92  class="action edit"><span><?= $block->escapeHtml(__('Change')); ?></span></a>
93  </strong>
94  <?php if ($_rate = $block->getShippingAddressRate($address)) : ?>
95  <div class="box-content">
96  <?= $block->escapeHtml($_rate->getCarrierTitle()) ?>
97  (<?= $block->escapeHtml($_rate->getMethodTitle()) ?>)
98  <?php
99  $exclTax = $block->getShippingPriceExclTax($address);
100  $inclTax = $block->getShippingPriceInclTax($address);
101  $displayBothPrices = $this->helper(Magento\Tax\Helper\Data::class)
102  ->displayShippingBothPrices() && $inclTax !== $exclTax;
103  ?>
104  <?php if ($displayBothPrices) : ?>
105  <span class="price-including-tax"
106  data-label="<?= $block->escapeHtml(__('Incl. Tax')); ?>">
107  <?= /* @noEscape */ $inclTax ?>
108  </span>
109  <span class="price-excluding-tax"
110  data-label="<?= $block->escapeHtml(__('Excl. Tax')); ?>">
111  <?= /* @noEscape */ $exclTax; ?>
112  </span>
113  <?php else : ?>
114  <?= /* @noEscape */ $inclTax ?>
115  <?php endif; ?>
116  </div>
117  <?php endif; ?>
118  </div>
119  <div class="box box-items">
120  <div class="box-content">
121  <div class="order-review-wrapper table-wrapper">
122  <table class="items data table table-order-review"
123  id="overview-table-<?= $block->escapeHtml($address->getId()); ?>">
124  <caption class="table-caption"><?= $block->escapeHtml(__('Order Review')); ?></caption>
125  <thead>
126  <tr>
127  <th class="col item" scope="col"><?= $block->escapeHtml(__('Item')); ?>
128  <a href="<?= $block->escapeUrl($block->getAddressesEditUrl()); ?>"
129  class="action edit">
130  <span><?= $block->escapeHtml(__('Edit')); ?></span>
131  </a>
132  </th>
133  <th class="col price" scope="col"><?= $block->escapeHtml(__('Price')); ?></th>
134  <th class="col qty" scope="col"><?= $block->escapeHtml(__('Qty')); ?></th>
135  <th class="col subtotal" scope="col"><?= $block->escapeHtml(__('Subtotal')); ?></th>
136  </tr>
137  </thead>
138  <tbody>
139  <?php foreach ($block->getShippingAddressItems($address) as $item) : ?>
140  <?= /* @noEscape */ $block->getRowItemHtml($item) ?>
141  <?php endforeach; ?>
142  </tbody>
143  <tfoot>
144  <?= /* @noEscape */ $block->renderTotals(
145  $block->getShippingAddressTotals($address)
146  ); ?>
147  </tfoot>
148  </table>
149  </div>
150  </div>
151  </div>
152  </div>
153  <?php endforeach; ?>
154  </div>
155 
156  <?php if ($block->getQuote()->hasVirtualItems()) : ?>
157  <div class="block block-other">
158  <?php $billingAddress = $block->getQuote()->getBillingAddress(); ?>
159  <a name="<?= $block->escapeHtml($block->getCheckoutData()
160  ->getAddressAnchorName($billingAddress->getId())); ?>"></a>
161  <div class="block-title"><strong><?= $block->escapeHtml(__('Other items in your order')); ?></strong></div>
162  <?php if ($error = $block->getCheckoutData()->getAddressError($billingAddress)) :?>
163  <div class="error-description"><?= $block->escapeHtml($error); ?></div>
164  <?php endif;?>
165  <div class="block-content">
166  <strong class="subtitle">
167  <span><?= $block->escapeHtml(__('Items')); ?></span>
168  <a href="<?= $block->escapeUrl($block->getVirtualProductEditUrl()); ?>"
169  class="action edit"><span><?= $block->escapeHtml(__('Edit Items')); ?></span></a>
170  </strong>
171  <?php $mergedCells = ($this->helper(Magento\Tax\Helper\Data::class)->displayCartBothPrices() ? 2 : 1); ?>
172  <div class="order-review-wrapper table-wrapper">
173  <table class="items data table table-order-review" id="virtual-overview-table">
174  <caption class="table-caption"><?= $block->escapeHtml(__('Items')); ?></caption>
175  <thead>
176  <tr>
177  <th class="col item" scope="col"><?= $block->escapeHtml(__('Product Name')); ?></th>
178  <th class="col price" scope="col"><?= $block->escapeHtml(__('Price')); ?></th>
179  <th class="col qty" scope="col"><?= $block->escapeHtml(__('Qty')); ?></th>
180  <th class="col subtotal" scope="col"><?= $block->escapeHtml(__('Subtotal')); ?></th>
181  </tr>
182  </thead>
183  <tbody>
184  <?php foreach ($block->getVirtualItems() as $_item) : ?>
185  <?= /* @noEscape */ $block->getRowItemHtml($_item) ?>
186  <?php endforeach; ?>
187  </tbody>
188  <tfoot>
189  <?= /* @noEscape */ $block->renderTotals($block->getBillingAddressTotals()); ?>
190  </tfoot>
191  </table>
192  </div>
193  </div>
194  </div>
195  <?php endif; ?>
196 
197  <?= /* @noEscape */ $block->getChildHtml('items_after') ?>
198 
199  <div id="checkout-review-submit" class="checkout-review">
200  <?= /* @noEscape */ $block->getChildHtml('agreements') ?>
201  <div class="grand totals">
202  <strong class="mark"><?= $block->escapeHtml(__('Grand Total:')); ?></strong>
203  <strong class="amount">
204  <?= /* @noEscape */ $this->helper(Magento\Checkout\Helper\Data::class)
205  ->formatPrice($block->getTotal()); ?>
206  </strong>
207  </div>
208  <div class="actions-toolbar" id="review-buttons-container">
209  <div class="primary">
210  <button type="submit"
211  class="action primary submit"
212  id="review-button"><span><?= $block->escapeHtml(__('Place Order')); ?></span>
213  </button>
214  </div>
215  <div class="secondary">
216  <a href="<?= $block->escapeUrl($block->getBackUrl()); ?>" class="action back">
217  <span><?= $block->escapeHtml(__('Back to Billing Information')); ?></span>
218  </a>
219  </div>
220  <span id="review-please-wait"
221  class="please-wait load indicator"
222  style="display: none;"
223  data-text="<?= $block->escapeHtml(__('Submitting order information...')); ?>">
224  <span><?= $block->escapeHtml(__('Submitting order information...')); ?></span>
225  </span>
226  </div>
227  </div>
228 </form>
if( $_rate=$block->getShippingAddressRate( $address))( $_rate->getCarrierTitle()) ?>(<? $exclTax
Definition: overview.phtml:99
$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
$billingAddress
Definition: order.php:25
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
__()
Definition: __.php:13
jquery extjs ext tree mage adminhtml form
Definition: tree.phtml:41
$block
Definition: block.php:8
$displayBothPrices
Definition: overview.phtml:101
$_item
Definition: default.phtml:11
endforeach
Definition: overview.phtml:15
$address
Definition: overview.phtml:30
endif
Definition: overview.phtml:75
if(file_exists($vendorAutoload)) else
Definition: autoload.php:31
$inclTax
Definition: overview.phtml:100
$mergedCells
Definition: overview.phtml:60
$index
Definition: list.phtml:44
$errors
Definition: overview.phtml:9