12 <section
class=
"admin__page-section">
13 <div
class=
"admin__page-section-title">
14 <span
class=
"title"><?=
__(
'Items to Refund') ?></span>
18 <div
class=
"admin__table-wrapper">
19 <table
class=
"data-table admin__table-primary order-creditmemo-tables">
22 <th
class=
"col-product"><span><?=
__(
'Product') ?></span></th>
23 <th
class=
"col-price"><span><?=
__(
'Price') ?></span></th>
24 <th
class=
"col-ordered-qty"><span><?=
__(
'Qty') ?></span></th>
25 <?php
if (
$block->canReturnToStock()) : ?>
26 <th
class=
"col-return-to-stock"><span><?=
__(
'Return to Stock') ?></span></th>
28 <th
class=
"col-refund"><span><?=
__(
'Qty to Refund') ?></span></th>
29 <th
class=
"col-subtotal"><span><?=
__(
'Subtotal') ?></span></th>
30 <th
class=
"col-tax-amount"><span><?=
__(
'Tax Amount') ?></span></th>
31 <th
class=
"col-discont"><span><?=
__(
'Discount Amount') ?></span></th>
32 <th
class=
"col-total last"><span><?=
__(
'Row Total') ?></span></th>
35 <?php
if (
$block->canEditQty()): ?>
38 <td colspan=
"3">&
nbsp;</td>
40 <?=
$block->getUpdateButtonHtml() ?>
42 <td colspan=
"3" class=
"last">&
nbsp;</td>
47 <?php
if (
$_item->getOrderItem()->getParentItem()) {
52 <tbody
class=
"<?= /* @escapeNotVerified */ $i%2 ? 'even' : 'odd' ?>">
60 <div
class=
"no-items">
61 <?=
__(
'No Items To Refund') ?>
69 <section
class=
"fieldset-wrapper">
74 <section
class=
"admin__page-section">
75 <input type=
"hidden" name=
"creditmemo[do_offline]" id=
"creditmemo_do_offline" value=
"0" />
76 <div
class=
"admin__page-section-title">
77 <span
class=
"title"><?=
__(
'Order Total') ?></span>
79 <div
class=
"admin__page-section-content">
80 <div
class=
"admin__page-section-item order-comments-history">
81 <div
class=
"admin__page-section-item-title">
82 <span
class=
"title"><?=
__(
'Credit Memo Comments') ?></span>
84 <div
id=
"history_form" class=
"admin__fieldset-wrapper-content">
85 <div
class=
"admin__field">
86 <label
class=
"normal admin__field-label" 87 for=
"creditmemo_comment_text">
88 <span><?=
__(
'Comment Text') ?></span></label>
89 <div
class=
"admin__field-control">
90 <textarea
id=
"creditmemo_comment_text" 91 class=
"admin__control-textarea" 92 name=
"creditmemo[comment_text]" 94 cols=
"5"><?=
$block->getCreditmemo()->getCommentText() ?></textarea>
99 <div
class=
"admin__page-section-item order-totals creditmemo-totals">
100 <div
class=
"admin__page-section-item-title">
101 <span
class=
"title"><?=
__(
'Refund Totals') ?></span>
103 <?=
$block->getChildHtml(
'creditmemo_totals') ?>
104 <div
class=
"order-totals-actions">
105 <div
class=
"field choice admin__field admin__field-option field-append-comments">
106 <input
id=
"notify_customer" 107 class=
"admin__control-checkbox" 108 name=
"creditmemo[comment_customer_notify]" 111 <label
for=
"notify_customer" class=
"admin__field-label">
112 <span><?=
__(
'Append Comments') ?></span>
115 <?php
if (
$block->canSendCreditmemoEmail()):?>
116 <div
class=
"field choice admin__field admin__field-option field-email-copy">
117 <input
id=
"send_email" 118 class=
"admin__control-checkbox" 119 name=
"creditmemo[send_email]" 122 <label
for=
"send_email" class=
"admin__field-label">
123 <span><?=
__(
'Email Copy of Credit Memo') ?></span>
127 <?=
$block->getChildHtml(
'submit_before') ?>
128 <div
class=
"actions">
129 <?=
$block->getChildHtml(
'submit_offline') ?>
130 <?=
$block->getChildHtml(
'submit_button') ?>
131 <?=
$block->getChildHtml(
'submit_after') ?>
139 require([
'jquery',
'prototype'],
function(
jQuery){
142 var submitButtons = $$(
'.submit-button');
143 var updateButtons = $$(
'.update-button');
144 var fields = $$(
'.qty-input');
146 updateButtons.each(
function (elem) {elem.disabled=
true;elem.addClassName(
'disabled');});
148 for(var i=0;i<fields.length;i++){
149 fields[i].observe(
'change', checkButtonsRelation)
150 fields[i].baseValue = fields[i].value;
153 function checkButtonsRelation() {
154 var hasChanges =
false;
155 fields.each(
function (elem) {
156 if (elem.baseValue != elem.value) {
161 submitButtons.each(
function (elem) {elem.disabled=
true;elem.addClassName(
'disabled');});
162 updateButtons.each(
function (elem) {elem.disabled=
false;elem.removeClassName(
'disabled');});
165 submitButtons.each(
function (elem) {elem.disabled=
false;elem.removeClassName(
'disabled');});
166 updateButtons.each(
function (elem) {elem.disabled=
true;elem.addClassName(
'disabled');});
170 submitCreditMemo =
function() {
171 if ($(
'creditmemo_do_offline')) $(
'creditmemo_do_offline').value=0;
173 jQuery(
'#edit_form').triggerHandler(
'save');
176 submitCreditMemoOffline =
function() {
177 if ($(
'creditmemo_do_offline')) $(
'creditmemo_do_offline').value=1;
179 jQuery(
'#edit_form').triggerHandler(
'save');
182 var sendEmailCheckbox = $(
'send_email');
184 if (sendEmailCheckbox) {
185 var notifyCustomerCheckbox = $(
'notify_customer');
186 var creditmemoCommentText = $(
'creditmemo_comment_text');
187 Event.observe(sendEmailCheckbox,
'change', bindSendEmail);
191 function bindSendEmail()
193 if (sendEmailCheckbox.checked ==
true) {
194 notifyCustomerCheckbox.disabled =
false;
198 notifyCustomerCheckbox.disabled =
true;
203 window.bindSendEmail = bindSendEmail;
204 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
if( $exist)( $type=='related'||$type=='upsell')($type=='related') else
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()