11 <section
class=
"admin__page-section">
12 <div
class=
"admin__page-section-title">
16 <div
class=
"admin__page-section-content grid">
17 <div
class=
"admin__table-wrapper">
18 <table
class=
"data-table admin__table-primary order-invoice-tables">
21 <th
class=
"col-product"><span><?=
__(
'Product') ?></span></th>
22 <th
class=
"col-price"><span><?=
__(
'Price') ?></span></th>
23 <th
class=
"col-ordered-qty"><span><?=
__(
'Qty') ?></span></th>
24 <th
class=
"col-qty-invoice"><span><?=
__(
'Qty to Invoice') ?></span></th>
25 <th
class=
"col-subtotal"><span><?=
__(
'Subtotal') ?></span></th>
26 <th
class=
"col-tax"><span><?=
__(
'Tax Amount') ?></span></th>
27 <th
class=
"col-discount"><span><?=
__(
'Discount Amount') ?></span></th>
28 <th
class=
"col-total last"><span><?=
__(
'Row Total') ?></span></th>
31 <?php
if (
$block->canEditQty()): ?>
34 <td colspan=
"2">&
nbsp;</td>
35 <td colspan=
"3"><?=
$block->getUpdateButtonHtml() ?></td>
36 <td colspan=
"3">&
nbsp;</td>
42 <?php
if (
$_item->getOrderItem()->getParentItem()) {
47 <tbody
class=
"<?= /* @escapeNotVerified */ $_i%2 ? 'even' : 'odd' ?>">
60 <section
class=
"admin__page-section">
65 <section
class=
"admin__page-section">
66 <div
class=
"admin__page-section-title">
67 <span
class=
"title"><?=
__(
'Order Total') ?></span>
69 <div
class=
"admin__page-section-content">
70 <div
class=
"admin__page-section-item order-comments-history">
71 <div
class=
"admin__page-section-item-title">
72 <span
class=
"title"><?=
__(
'Invoice History') ?></span>
74 <div
id=
"history_form" class=
"admin__page-section-item-content order-history-form">
75 <div
class=
"admin__field">
76 <label
for=
"invoice_comment_text" class=
"admin__field-label">
77 <span><?=
__(
'Invoice Comments') ?></span>
79 <div
class=
"admin__field-control">
80 <textarea
id=
"invoice_comment_text" name=
"invoice[comment_text]" class=
"admin__control-textarea" 81 rows=
"3" cols=
"5"><?=
$block->getInvoice()->getCommentText() ?></textarea>
87 <div
id=
"invoice_totals" class=
"admin__page-section-item order-totals">
88 <div
class=
"admin__page-section-item-title">
89 <span
class=
"title"><?=
__(
'Invoice Totals') ?></span>
91 <div
class=
"admin__page-section-item-content order-totals-actions">
92 <?=
$block->getChildHtml(
'invoice_totals') ?>
93 <?php
if (
$block->isCaptureAllowed()): ?>
94 <?php
if (
$block->canCapture()):?>
95 <div
class=
"admin__field">
102 <label
for=
"invoice_do_capture" class=
"admin__field-label"><?=
__(
'Amount') ?></label>
103 <select
class=
"admin__control-select" name=
"invoice[capture_case]">
104 <option
value=
"online"><?=
__(
'Capture Online') ?></option>
105 <option
value=
"offline"><?=
__(
'Capture Offline') ?></option>
106 <option
value=
"not_capture"><?=
__(
'Not Capture') ?></option>
110 <input type=
"hidden" name=
"invoice[capture_case]" value=
"offline"/>
111 <div><?=
__(
'The invoice will be created offline without the payment gateway.') ?></div>
114 <div
class=
"admin__field admin__field-option field-append">
115 <input
id=
"notify_customer" name=
"invoice[comment_customer_notify]" value=
"1" type=
"checkbox" 116 class=
"admin__control-checkbox" />
117 <label
class=
"admin__field-label" for=
"notify_customer"><?=
__(
'Append Comments') ?></label>
119 <?php
if (
$block->canSendInvoiceEmail()): ?>
120 <div
class=
"admin__field admin__field-option field-email">
121 <input
id=
"send_email" name=
"invoice[send_email]" value=
"1" type=
"checkbox" 122 class=
"admin__control-checkbox" />
123 <label
class=
"admin__field-label" for=
"send_email"><?=
__(
'Email Copy of Invoice') ?></label>
126 <?=
$block->getChildHtml(
'submit_before') ?>
127 <div
class=
"actions">
128 <?=
$block->getChildHtml(
'submit_button') ?>
129 <?=
$block->getChildHtml(
'submit_after') ?>
137 require([
'jquery',
'prototype'],
function(
jQuery){
140 var submitButtons = $$(
'.submit-button');
141 var updateButtons = $$(
'.update-button');
142 var enableSubmitButtons = <?= (int) !
$block->getDisableSubmitButton() ?>;
143 var fields = $$(
'.qty-input');
145 updateButtons.each(
function (elem) {elem.disabled=
true;elem.addClassName(
'disabled');});
147 for(var i=0;i<fields.length;i++){
148 jQuery(fields[i]).on(
'keyup', checkButtonsRelation);
149 fields[i].baseValue = fields[i].value;
152 function checkButtonsRelation() {
153 var hasChanges =
false;
154 fields.each(
function (elem) {
155 if (elem.baseValue != elem.value) {
160 submitButtons.each(
function (elem) {elem.disabled=
true;elem.addClassName(
'disabled');});
161 updateButtons.each(
function (elem) {elem.disabled=
false;elem.removeClassName(
'disabled');});
164 if (enableSubmitButtons) {
165 submitButtons.each(
function (elem) {elem.disabled=
false;elem.removeClassName(
'disabled');});
167 updateButtons.each(
function (elem) {elem.disabled=
true;elem.addClassName(
'disabled');});
171 var sendEmailCheckbox = $(
'send_email');
172 if (sendEmailCheckbox) {
173 var notifyCustomerCheckbox = $(
'notify_customer');
174 var invoiceCommentText = $(
'invoice_comment_text');
175 Event.observe(sendEmailCheckbox,
'change', bindSendEmail);
178 function bindSendEmail()
180 if (sendEmailCheckbox.checked ==
true) {
181 notifyCustomerCheckbox.disabled =
false;
185 notifyCustomerCheckbox.disabled =
true;
190 window.bindSendEmail = bindSendEmail;
191 window.checkButtonsRelation = checkButtonsRelation;
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
elseif(isset( $params[ 'redirect_parent']))
if( $block->getQuote() ->hasVirtualItems())( 'Other items in your order') ?></strong >< a hrefforeach( $block->getVirtualQuoteItems() as $_item)(__( 'Product Name')) ?>"><? endforeach
$_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
if( $type=='related' &&$canItemsAddToCart)( 'Check items to add to the cart or') ?>< button type endif
jQuery('.store-switcher .dropdown-menu li a').each(function()