Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
addresses.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
16 ?>
17 <form id="checkout_multishipping_form"
18  data-mage-init='{
19  "multiShipping":{},
20  "validation":{},
21  "cartUpdate": {
22  "validationURL": "/multishipping/checkout/checkItems",
23  "eventName": "updateMulticartItemQty"
24  }}'
25  action="<?= $block->escapeUrl($block->getPostActionUrl()) ?>"
26  method="post"
27  class="multicheckout address form">
28 <form id="checkout_multishipping_form"
29  data-mage-init='{
30  "multiShipping":{},
31  "cartUpdate": {
32  "validationURL": "/multishipping/checkout/checkItems",
33  "eventName": "updateMulticartItemQty"
34  }}'
35  action="<?= $block->escapeUrl($block->getPostActionUrl()) ?>"
36  method="post"
37  class="multicheckout address form">
38  <div class="title">
39  <strong><?= $block->escapeHtml(__('Please select a shipping address for applicable items.')) ?></strong>
40  </div>
41  <input type="hidden" name="continue" value="0" id="can_continue_flag"/>
42  <input type="hidden" name="new_address" value="0" id="add_new_address_flag"/>
43  <div class="table-wrapper">
44  <table class="items data table" id="multiship-addresses-table">
45  <caption class="table-caption">
46  <?= $block->escapeHtml(__('Please select a shipping address for applicable items.')) ?>
47  </caption>
48  <thead>
49  <tr>
50  <th class="col product" scope="col"><?= $block->escapeHtml(__('Product')) ?></th>
51  <th class="col qty" scope="col"><?= $block->escapeHtml(__('Qty')) ?></th>
52  <th class="col address" scope="col"><?= $block->escapeHtml(__('Send To')) ?></th>
53  <th class="col actions" scope="col">&nbsp;</th>
54  </tr>
55  </thead>
56  <tbody>
57  <?php foreach ($block->getItems() as $_index => $_item): ?>
58  <?php if ($_item->getQuoteItem()) : ?>
59  <tr>
60  <td class="col product" data-th="<?= $block->escapeHtml(__('Product')) ?>">
61  <?= $block->getItemHtml($_item->getQuoteItem()) ?>
62  </td>
63  <td class="col qty" data-th="<?= $block->escapeHtml(__('Qty')) ?>">
64  <div class="field qty">
65  <label for="ship-<?= $block->escapeHtml($_index) ?>-<?= $block->escapeHtml($_item->getQuoteItemId()) ?>-qty"
66  class="label">
67  <span><?= $block->escapeHtml(__('Qty')) ?></span>
68  </label>
69  <div class="control">
70  <input type="number"
71  data-multiship-item-id="<?= $block->escapeHtml($_item->getSku()) ?>"
72  id="ship-<?= $block->escapeHtml($_index) ?>-<?= $block->escapeHtml($_item->getQuoteItemId()) ?>-qty"
73  name="ship[<?= $block->escapeHtml($_index) ?>][<?= $block->escapeHtml($_item->getQuoteItemId()) ?>][qty]"
74  value="<?= $block->escapeHtml($_item->getQty()) ?>"
75  size="2"
76  class="input-text qty"
77  data-validate="{number: true}"/>
78  </div>
79  </div>
80  </td>
81  <td class="col address" data-th="<?= $block->escapeHtml(__('Send To')) ?>">
82  <?php if ($_item->getProduct()->getIsVirtual()): ?>
83  <div class="applicable">
84  <?= $block->escapeHtml(__('A shipping selection is not applicable.')) ?>
85  </div>
86  <?php else: ?>
87  <div class="field address">
88  <label for="ship_<?= $block->escapeHtml($_index) ?>_<?= $block->escapeHtml($_item->getQuoteItemId()) ?>_address"
89  class="label">
90  <span><?= $block->escapeHtml(__('Send To')) ?></span>
91  </label>
92  <div class="control">
93  <?= $block->getAddressesHtmlSelect($_item, $_index) ?>
94  </div>
95  </div>
96  <?php endif; ?>
97  </td>
98  <td class="col actions" data-th="<?= $block->escapeHtml(__('Actions')) ?>">
99  <a href="<?= $block->escapeUrl($block->getItemDeleteUrl($_item)) ?>"
100  title="<?= $block->escapeHtml(__('Remove Item')) ?>"
101  class="action delete"
102  data-multiship-item-remove="">
103  <span><?= $block->escapeHtml(__('Remove item')) ?></span>
104  </a>
105  </td>
106  </tr>
107  <?php endif; ?>
108  <?php endforeach; ?>
109  </tbody>
110  </table>
111  </div>
112  <div class="actions-toolbar">
113  <div class="primary">
114  <button type="submit"
115  title="<?= $block->escapeHtml(__('Go to Shipping Information')) ?>"
116  class="action primary continue<?php if ($block->isContinueDisabled()):?> disabled<?php endif; ?>"
117  data-role="can-continue"
118  data-flag="1"
119  <?php if ($block->isContinueDisabled()):?>
120  disabled="disabled"
121  <?php endif; ?>>
122  <span><?= $block->escapeHtml(__('Go to Shipping Information')) ?></span>
123  </button>
124  </div>
125  <div class="secondary">
126  <button type="submit"
127  data-multiship-item-update=""
128  class="action update"
129  data-role="can-continue"
130  data-flag="0">
131  <span><?= $block->escapeHtml(__('Update Qty &amp; Addresses')) ?></span>
132  </button>
133  <button type="button"
134  title="<?= $block->escapeHtml(__('Enter a New Address')) ?>"
135  class="action add"
136  data-role="add-new-address">
137  <span><?= $block->escapeHtml(__('Enter a New Address')) ?></span>
138  </button>
139  <a href="<?= $block->escapeUrl($block->getBackUrl()) ?>"
140  class="action back">
141  <span><?= $block->escapeHtml(__('Back to Shopping Cart')) ?></span>
142  </a>
143  </div>
144  </div>
145 </form>
endforeach
$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
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
$_count $_index $_prevOptionId if($block->getOrderOptions()|| $_item->getDescription()) foreach( $items as $_item)( $_item) ?><?php $attributes if( $_item->getOrderItem() ->getParentItem())($_prevOptionId !=$attributes['option_id'])</td >< td > & nbsp
Definition: renderer.phtml:33
$_item
Definition: default.phtml:11
foreach( $block->getItems() as $_index=> $_item)( $_item->getQuoteItem())(__( 'Product')) ?>"> <?if($_item->getProduct()->getIsVirtual()) (__('A shipping selection is not applicable.')) ?> </div> <?php else ($_index) ?>_<? endif
Definition: addresses.phtml:93