Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
form.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
15 ?>
16 
17 <div class="admin__field field-apply-coupon-code">
18  <label class="admin__field-label"><span><?= /* @escapeNotVerified */ __('Apply Coupon Code') ?></span></label>
19  <div class="admin__field-control">
20  <input type="text" class="admin__control-text" id="coupons:code" value="" name="coupon_code" />
21  <?= $block->getButtonHtml(__('Apply'), 'order.applyCoupon($F(\'coupons:code\'))') ?>
22  <?php if ($block->getCouponCode()): ?>
23  <p class="added-coupon-code">
24  <span><?= $block->escapeHtml($block->getCouponCode()) ?></span>
25  <a href="#" onclick="order.applyCoupon(''); return false;" title="<?= /* @escapeNotVerified */ __('Remove Coupon Code') ?>"
26  class="action-remove"><span><?= /* @escapeNotVerified */ __('Remove') ?></span></a>
27  </p>
28  <?php endif; ?>
29  <script>
30  require(["Magento_Sales/order/create/form"], function(){
31 
32  order.overlay('shipping-method-overlay', <?php if ($block->getQuote()->isVirtual()): ?>false<?php else: ?>true<?php endif; ?>);
33  order.overlay('address-shipping-overlay', <?php if ($block->getQuote()->isVirtual()): ?>false<?php else: ?>true<?php endif; ?>);
34 
35  });
36  </script>
37  </div>
38 </div>
$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
endif
Definition: form.phtml:34
__()
Definition: __.php:13
$block
Definition: block.php:8