Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
data.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <div class="page-create-order">
11  <script>
12  require(["Magento_Sales/order/create/form"], function(){
13  order.setCurrencySymbol('<?= /* @escapeNotVerified */ $block->getCurrencySymbol($block->getCurrentCurrencyCode()) ?>')
14  });
15 </script>
16  <div class="order-details<?php if ($block->getCustomerId()): ?> order-details-existing-customer<?php endif; ?>">
17 
18  <div id="order-additional_area" style="display: none" class="admin__page-section order-additional-area">
19  <?= $block->getChildHtml('additional_area') ?>
20  </div>
21 
22  <div id="order-search" style="display: none" class="admin__page-section order-search-items">
23  <?= $block->getChildHtml('search') ?>
24  </div>
25 
26  <section id="order-items" class="admin__page-section order-items" data-mage-init='{"loader": {}}'>
27  <?= $block->getChildHtml('items') ?>
28  </section>
29 
30  <div id="order-errors" class="order-errors"><?= $block->getChildHtml('errors') ?></div>
31 
32  <section id="order-form_account" class="admin__page-section order-account-information">
33  <?= $block->getChildHtml('form_account') ?>
34  </section>
35 
36  <section id="order-addresses" class="admin__page-section order-addresses">
37  <div class="admin__page-section-title">
38  <span class="title"><?= /* @escapeNotVerified */ __('Address Information') ?></span>
39  </div>
40  <div class="admin__page-section-content">
41  <div id="order-billing_address" class="admin__page-section-item order-billing-address">
42  <?= $block->getChildHtml('billing_address') ?>
43  </div>
44  <div id="order-shipping_address" class="admin__page-section-item order-shipping-address">
45  <?= $block->getChildHtml('shipping_address') ?>
46  </div>
47  </div>
48  </section>
49 
50  <section id="order-methods" class="admin__page-section order-methods">
51  <div class="admin__page-section-title">
52  <span class="title"><?= /* @escapeNotVerified */ __('Payment &amp; Shipping Information') ?></span>
53  </div>
54  <div class="admin__page-section-content">
55  <div id="order-billing_method" class="admin__page-section-item order-billing-method">
56  <?= $block->getChildHtml('billing_method') ?>
57  </div>
58  <div id="order-shipping_method" class="admin__page-section-item order-shipping-method">
59  <?= $block->getChildHtml('shipping_method') ?>
60  </div>
61  </div>
62  </section>
63 
64  <?php if ($block->getChildBlock('card_validation')): ?>
65  <section id="order-card_validation" class="admin__page-section order-card-validation">
66  <?= $block->getChildHtml('card_validation') ?>
67  </section>
68  <?php endif; ?>
69 
70  <?= $block->getChildHtml('gift_options') ?>
71 
72  <section class="admin__page-section order-summary">
73  <div class="admin__page-section-title">
74  <span class="title"><?= /* @escapeNotVerified */ __('Order Total') ?></span>
75  </div>
76  <div class="admin__page-section-content">
77  <fieldset class="admin__fieldset order-history" id="order-comment">
78  <legend class="admin__legend"><span><?= /* @escapeNotVerified */ __('Order History') ?></span></legend>
79  <br>
80  <?= $block->getChildHtml('comment') ?>
81  </fieldset>
82  <fieldset id="order-totals" class="admin__fieldset order-totals">
83  <?= $block->getChildHtml('totals') ?>
84  </fieldset>
85  </div>
86  </section>
87  </div>
88 
89  <?php if ($block->getCustomerId()): ?>
90  <div class="order-sidebar">
91  <div class="store-switcher order-currency">
92  <label class="admin__field-label" for="currency_switcher">
93  <?= /* @escapeNotVerified */ __('Order Currency:') ?>
94  </label>
95  <select id="currency_switcher"
96  class="admin__control-select"
97  name="order[currency]"
98  onchange="order.setCurrencyId(this.value); order.setCurrencySymbol(this.options[this.selectedIndex].getAttribute('symbol'));">
99  <?php foreach ($block->getAvailableCurrencies() as $_code): ?>
100  <option value="<?= /* @escapeNotVerified */ $_code ?>"<?php if ($_code == $block->getCurrentCurrencyCode()): ?> selected="selected"<?php endif; ?> symbol="<?= /* @escapeNotVerified */ $block->getCurrencySymbol($_code) ?>">
101  <?= /* @escapeNotVerified */ $block->getCurrencyName($_code) ?>
102  </option>
103  <?php endforeach; ?>
104  </select>
105  </div>
106  <div class="customer-current-activity" id="order-sidebar">
107  <?= $block->getChildHtml('sidebar') ?>
108  </div>
109  </div>
110  <?php endif; ?>
111 
112 </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: data.phtml:107
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
__()
Definition: __.php:13
$_code
Definition: attribute.phtml:19
$block
Definition: block.php:8
if( $block->getCustomerId())( 'Order Currency:') ?></label >< select id if($_code==$block->getCurrentCurrencyCode()) endforeach
Definition: data.phtml:101