-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4de99a5
commit 9f079e1
Showing
2 changed files
with
31 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<div id="delivery-date"> | ||
<strong><?= __('Delivery Date') ?></strong> | ||
<span class="price"><?= $block->getDeliveryDate() ?></span> | ||
</div> | ||
<div id="delivery-comment"> | ||
<strong><?= __('Comment') ?>:</strong> | ||
<br/> | ||
<span class="price"><?= $block->getDeliveryComment() ?></span> | ||
</div> | ||
<section class="admin__page-section" id="delivery-date-content"> | ||
<div class="admin__page-section-title"> | ||
<span class="title"><?= $block->escapeHtml(__('Delivery Date Information')) ?></span> | ||
</div> | ||
<div class="admin__page-section-content"> | ||
<div id="delivery-date"> | ||
<strong><?= __('Delivery Date') ?></strong> | ||
<span><?= $block->getDeliveryDate() ?></span> | ||
</div> | ||
<div id="delivery-comment"> | ||
<strong><?= __('Comment') ?>:</strong> | ||
<br/> | ||
<?= $block->getDeliveryComment() ?> | ||
</div> | ||
</div> | ||
</section> | ||
<script type="text/javascript"> | ||
require( | ||
['jquery'], | ||
function($) { | ||
var element = $('#delivery-date').detach(); | ||
$('.order-shipping-method').append(element); | ||
var element = $('#delivery-comment').detach(); | ||
$('.order-shipping-method').append(element); | ||
$('#delivery-date-content').insertAfter($('.order-view-billing-shipping')); | ||
} | ||
); | ||
</script> |