18 <div
id=
"order-items_grid">
19 <div
class=
"admin__table-wrapper">
20 <table
class=
"data-table admin__table-primary order-tables">
23 <th
class=
"col-product"><span><?=
__(
'Product') ?></span></th>
24 <th
class=
"col-price"><span><?=
__(
'Price') ?></span></th>
25 <th
class=
"col-qty"><span><?=
__(
'Qty') ?></span></th>
26 <th
class=
"col-subtotal"><span><?=
__(
'Subtotal') ?></span></th>
27 <th
class=
"col-discount"><span><?=
__(
'Discount') ?></span></th>
28 <th
class=
"col-row-total"><span><?=
__(
'Row Subtotal') ?></span></th>
29 <th
class=
"col-action"><span><?=
__(
'Action') ?></span></th>
34 <td
class=
"empty-text" colspan=
"100"><?=
__(
'No ordered items') ?></td>
41 <div
class=
"admin__table-wrapper" id=
"order-items_grid">
42 <?php
if (count(
$_items)>10): ?>
43 <div
class=
"actions update actions-update">
44 <?=
$block->getButtonHtml(
__(
'Update Items and Quantities'),
'order.itemsUpdate()',
'action-secondary') ?>
47 <table
class=
"data-table admin__table-primary order-tables">
50 <th
class=
"col-product"><span><?=
__(
'Product') ?></span></th>
51 <th
class=
"col-price"><span><?=
__(
'Price') ?></span></th>
52 <th
class=
"col-qty"><span><?=
__(
'Qty') ?></span></th>
53 <th
class=
"col-subtotal"><span><?=
__(
'Subtotal') ?></span></th>
54 <th
class=
"col-discount"><span><?=
__(
'Discount') ?></span></th>
55 <th
class=
"col-row-total"><span><?=
__(
'Row Subtotal') ?></span></th>
56 <th
class=
"col-action"><span><?=
__(
'Action') ?></span></th>
61 <td
class=
"col-total"><?=
__(
'Total %1 product(s)', count(
$_items)) ?></td>
62 <td colspan=
"2" class=
"col-subtotal"><?=
__(
'Subtotal:') ?></td>
63 <td
class=
"col-price"><strong><?=
$block->formatPrice(
$block->getSubtotal()) ?></strong></td>
64 <td
class=
"col-price"><strong><?=
$block->formatPrice(
$block->getDiscountAmount()) ?></strong></td>
65 <td
class=
"col-price"><strong>
67 echo
$block->formatPrice(
$block->getSubtotalWithDiscount());
69 <td colspan=
"2">&
nbsp;</td>
74 <tbody
class=
"<?= /* @escapeNotVerified */ ($i%2) ? 'even' : 'odd' ?>">
76 <td
class=
"col-product">
77 <span
id=
"order_item_<?= /* @escapeNotVerified */ $_item->getId() ?>_title"><?=
$block->escapeHtml(
$_item->getName()) ?></span>
78 <div
class=
"product-sku-block">
79 <span><?=
__(
'SKU') ?>:</span>
80 <?= implode(
'<br />', $this->helper(
'Magento\Catalog\Helper\Data')->splitSku(
$block->escapeHtml(
$_item->getSku()))) ?>
82 <div
class=
"product-configure-block">
86 <td
class=
"col-price">
90 <?php $_isCustomPrice =
$block->usedCustomPriceForItem(
$_item) ?>
92 <div
id=
"item_tier_block_<?= /* @escapeNotVerified */ $_item->getId() ?>"<?php
if ($_isCustomPrice): ?> style=
"display:none"<?php
endif; ?>>
93 <a href=
"#" onclick=
"$('item_tier_<?= /* @escapeNotVerified */ $_item->getId() ?>').toggle();return false;"><?=
__(
'Tier Pricing') ?></a>
94 <div style=
"display:none" id=
"item_tier_<?= /* @escapeNotVerified */ $_item->getId() ?>"><?= $_tier ?></div>
98 <div
class=
"custom-price-block">
99 <input type=
"checkbox" 100 class=
"admin__control-checkbox" 101 id=
"item_use_custom_price_<?= /* @escapeNotVerified */ $_item->getId() ?>" 102 <?php
if ($_isCustomPrice): ?> checked=
"checked"<?php
endif; ?>
103 onclick=
"order.toggleCustomPrice(this, 'item_custom_price_<?= /* @escapeNotVerified */ $_item->getId() ?>', 'item_tier_block_<?= /* @escapeNotVerified */ $_item->getId() ?>');"/>
105 class=
"normal admin__field-label" 106 for=
"item_use_custom_price_<?= /* @escapeNotVerified */ $_item->getId() ?>">
107 <span><?=
__(
'Custom Price') ?>*</span></label>
110 <input
id=
"item_custom_price_<?= /* @escapeNotVerified */ $_item->getId() ?>" 111 name=
"item[<?= /* @escapeNotVerified */ $_item->getId() ?>][custom_price]" 112 value=
"<?= /* @escapeNotVerified */ sprintf("%.2f
", $block->getOriginalEditablePrice($_item)) ?>" 113 <?php
if (!$_isCustomPrice): ?>
117 class=
"input-text item-price admin__control-text"/>
120 <input
name=
"item[<?= /* @escapeNotVerified */ $_item->getId() ?>][qty]" 121 class=
"input-text item-qty admin__control-text" 122 value=
"<?= /* @escapeNotVerified */ $_item->getQty()*1 ?>" 125 <td
class=
"col-subtotal col-price">
128 <td
class=
"col-discount col-price">
129 <?=
$block->formatPrice(-
$_item->getTotalDiscountAmount()) ?>
130 <div
class=
"discount-price-block">
131 <input
id=
"item_use_discount_<?= /* @escapeNotVerified */ $_item->getId() ?>" 132 class=
"admin__control-checkbox" 133 name=
"item[<?= /* @escapeNotVerified */ $_item->getId() ?>][use_discount]" 134 <?php
if (!
$_item->getNoDiscount()): ?>checked=
"checked"<?php
endif; ?>
138 for=
"item_use_discount_<?= /* @escapeNotVerified */ $_item->getId() ?>" 139 class=
"normal admin__field-label">
140 <span><?=
__(
'Apply') ?></span></label>
144 <td
class=
"col-price col-row-subtotal">
147 <td
class=
"col-actions last">
148 <select
class=
"admin__control-select" name=
"item[<?= /* @escapeNotVerified */ $_item->getId() ?>][action]">
149 <option
value=
""><?=
__(
'Please select') ?></option>
150 <option
value=
"remove"><?=
__(
'Remove') ?></option>
151 <?php
if (
$block->getCustomerId() &&
$block->getMoveToCustomerStorage()): ?>
152 <option
value=
"cart"><?=
__(
'Move to Shopping Cart') ?></option>
154 <?php $wishlists =
$block->getCustomerWishlists();?>
155 <?php
if (count($wishlists) <= 1):?>
156 <option
value=
"wishlist"><?=
__(
'Move to Wish List') ?></option>
158 <optgroup label=
"<?= /* @escapeNotVerified */ __('Move to Wish List') ?>">
159 <?php
foreach ($wishlists as
$wishlist):?>
160 <option
value=
"wishlist_<?= /* @escapeNotVerified */ $wishlist->getId() ?>"><?=
$block->escapeHtml(
$wishlist->getName()) ?></option>
171 <?php
foreach (
$_item->getMessage(
false) as $messageError):?>
172 <?php
if (!empty($messageError)) {
179 <tr
class=
"row-messages-error">
180 <td colspan=
"100"> <!-- ToDo UI:
remove the 100 -->
186 <div
class=
"message <?php if ($_item->getHasError()): ?>message-error<?php else: ?>message-notice<?php endif; ?>">
198 <p><small><?=
$block->getInclExclTaxMessage() ?></small></p>
201 <div
class=
"order-discounts">
202 <?=
$block->getButtonHtml(
__(
'Update Items and Quantities'),
'order.itemsUpdate()',
'action-secondary') ?>
203 <div
id=
"order-coupons" class=
"order-coupons"><?=
$block->getChildHtml() ?></div>
208 'Magento_Sales/order/create/form' 210 order.itemsOnchangeBind()
214 <?php
if (
$block->isGiftMessagesAvailable()) : ?>
218 "Magento_Sales/order/giftoptions_tooltip" 225 function getGiftOptionsTooltipContent(itemId) {
226 var contentLines = [];
227 var headerLine =
null;
228 var contentLine =
null;
230 $$(
'#gift_options_data_' + itemId +
' .gift-options-tooltip-content').each(
function (element) {
231 if (element.down(0)) {
232 headerLine = element.down(0).innerHTML;
233 contentLine = element.down(0).next().innerHTML;
234 if (contentLine.length > 30) {
235 contentLine = contentLine.slice(0,30) +
'...';
237 contentLines.push(headerLine +
' ' + contentLine);
240 return contentLines.join(
'<br/>');
243 giftOptionsTooltip.setTooltipContentLoaderFunction(getGiftOptionsTooltipContent);
245 window.getGiftOptionsTooltipContent = getGiftOptionsTooltipContent;
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
$_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
foreach( $block->getColumns() as $_column)() ?><? endforeach