Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
review.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
11 ?>
12 <div class="paypal-review view">
13  <div class="block block-order-details-view">
14  <div class="block-content">
15  <?php if ($block->getShippingAddress()): ?>
16  <div class="box box-order-shipping-method">
17  <strong class="box-title">
18  <span><?= $block->escapeHtml(__('Shipping Method')) ?></span>
19  </strong>
20  <div class="box-content">
21  <form method="post" id="shipping-method-form"
22  action="<?= $block->escapeUrl($block->getShippingMethodSubmitUrl()) ?>"
23  class="form">
24  <?php if ($block->canEditShippingMethod()): ?>
25  <?php if ($groups = $block->getShippingRateGroups()): ?>
26  <?php $currentRate = $block->getCurrentShippingRate(); ?>
27  <div class="field shipping required">
28  <select name="shipping_method" id="shipping-method" class="select">
29  <?php if (!$currentRate): ?>
30  <option value=""><?= $block->escapeHtml(__(
31  'Please select a shipping method...'
32  )); ?></option>
33  <?php endif; ?>
34  <?php foreach ($groups as $code => $rates): ?>
35  <optgroup label="<?= $block->escapeHtml($block->getCarrierName(
36  $code
37  )); ?>">
38  <?php foreach ($rates as $rate): ?>
39  <option value="<?= $block->escapeHtml(
40  $block->renderShippingRateValue($rate)
41  ); ?>"
42  <?= ($currentRate === $rate) ?
43  ' selected="selected"' : '';
44  ?>>
45  <?php /* @noEscape */ echo
46  $block->renderShippingRateOption($rate);
47  ?>
48  </option>
49  <?php endforeach; ?>
50  </optgroup>
51  <?php endforeach; ?>
52  </select>
53  </div>
54  <div class="actions-toolbar">
55  <div class="primary">
56  <button id="update-shipping-method-submit" type="submit"
57  class="action update primary">
58  <span>
59  <?= $block->escapeHtml(__('Update Shipping Method')) ?>
60  </span>
61  </button>
62  </div>
63  </div>
64  <?php else: ?>
65  <p>
66  <?= $block->escapeHtml(__(
67  'Sorry, no quotes are available for this order right now.'
68  )); ?>
69  </p>
70  <?php endif; ?>
71  <?php else: ?>
72  <p>
73  <?php /* @noEscape */ echo $block->renderShippingRateOption(
74  $block->getCurrentShippingRate()
75  ); ?>
76  </p>
77  <?php endif; ?>
78  </form>
79  </div>
80  </div>
81  <div class="box box-order-shipping-address">
82  <strong class="box-title">
83  <span><?= $block->escapeHtml(__('Shipping Address')) ?></span>
84  </strong>
85  <div class="box-content">
86  <address>
87  <?= $block->escapeHtml(
88  $block->renderAddress($block->getShippingAddress()),
89  ['br']
90  );?>
91  </address>
92  </div>
93  <?php if ($block->getCanEditShippingAddress()): ?>
94  <div class="box-actions">
95  <a href="<?= $block->escapeUrl($block->getEditUrl()) ?>" class="action edit">
96  <span><?= $block->escapeHtml(__('Edit')) ?></span>
97  </a>
98  </div>
99  <?php endif; ?>
100  </div>
101  <?php endif; ?>
102  <div class="box box-order-billing-address">
103  <strong class="box-title"><span><?= $block->escapeHtml(__('Payment Method')) ?></span></strong>
104  <div class="box-content">
105  <?= $block->escapeHtml($block->getPaymentMethodTitle()) ?><br>
106  <?= $block->escapeHtml($block->getEmail()) ?> <br>
107  <img src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/pp-acceptance-medium.png"
108  alt="<?= $block->escapeHtml(__('Buy now with PayPal')) ?>"/>
109  </div>
110  <?php if ($block->getEditUrl()): ?>
111  <div class="box-actions">
112  <a href="<?= $block->escapeUrl($block->getEditUrl()) ?>" class="action edit">
113  <span><?= $block->escapeHtml(__('Edit Payment Information')) ?></span>
114  </a>
115  </div>
116  <?php endif ?>
117  </div>
118  </div>
119  </div>
120 
121  <div class="paypal-review-discount">
122  <?= $block->getChildHtml('paypal.additional.actions') ?>
123  </div>
124 
125  <div class="paypal-review-items">
126  <div class="paypal-review-title">
127  <strong><?= $block->escapeHtml(__('Items in Your Shopping Cart')) ?></strong>
128  <a href="<?= $block->escapeUrl($block->getUrl('checkout/cart')) ?>" class="action edit">
129  <span><?= $block->escapeHtml(__('Edit Shopping Cart')) ?></span>
130  </a>
131  </div>
132 
133  <?= $block->getChildHtml('details') ?>
134 
135  <form method="post" id="order-review-form" action="<?= $block->escapeUrl($block->getPlaceOrderUrl()) ?>"
136  class="form order-review-form">
137  <?= $block->getChildHtml('agreements') ?>
138  <div class="actions-toolbar" id="review-buttons-container">
139  <div class="primary">
140  <button type="button" id="review-button" class="action checkout primary"
141  value="<?= $block->escapeHtml(__('Place Order')) ?>">
142  <span><?= $block->escapeHtml(__('Place Order')) ?></span>
143  </button>
144  <button type="button" id="review-submit" class="action checkout primary"
145  value="<?= $block->escapeHtml(__('Place Order')) ?>">
146  <span><?= $block->escapeHtml(__('Place Order')) ?></span>
147  </button>
148  </div>
149  <span class="please-wait load indicator" id="review-please-wait" style="display: none;"
150  data-text="<?= $block->escapeHtml(__('Submitting order information...')) ?>">
151  <span><?= $block->escapeHtml(__('Submitting order information...')) ?></span>
152  </span>
153  </div>
154  </form>
155  </div>
156 </div>
157 <script type="text/x-magento-init">
158  {
159  "#order-review-form": {
160  "validation": {},
161  "orderReview": {
162  "shippingSubmitFormSelector": "#shipping-method-form",
163  "shippingSelector": "#shipping-method",
164  "shippingMethodUpdateUrl": "<?= $block->escapeUrl($block->getUpdateShippingMethodsUrl()) ?>",
165  "isAjax": <?= /* @noEscape */ $block->getUseAjax() ? 'true' : 'false' ?>,
166  "canEditShippingMethod": <?= /* @noEscape */ $block->canEditShippingMethod() ? 'true' : 'false' ?>
167  }
168  }
169  }
170 </script>
$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
endforeach
Definition: review.phtml:42
__()
Definition: __.php:13
$rates
Definition: tax.phtml:35
jquery extjs ext tree mage adminhtml form
Definition: tree.phtml:41
$block
Definition: block.php:8
endif
Definition: review.phtml:33
$code
Definition: info.phtml:12