Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
totals.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <legend class="admin__legend"><span><?= /* @escapeNotVerified */ __('Order Totals') ?></span></legend>
11 <br>
12 
13 <table class="admin__table-secondary data-table">
14  <tbody>
15  <?= /* @escapeNotVerified */ $block->renderTotals() ?>
16  <?= /* @escapeNotVerified */ $block->renderTotals('footer') ?>
17  </tbody>
18 </table>
19 
20 <div class="order-totals-actions">
21  <div class="admin__field admin__field-option field-append-comments">
22  <input type="checkbox" id="notify_customer" name="order[comment][customer_note_notify]"
23  value="1"<?php if ($block->getNoteNotify()): ?> checked="checked"<?php endif; ?>
24  class="admin__control-checkbox"/>
25  <label for="notify_customer" class="admin__field-label"><?= /* @escapeNotVerified */ __('Append Comments') ?></label>
26  </div>
27  <?php if ($block->canSendNewOrderConfirmationEmail()): ?>
28  <div class="admin__field admin__field-option field-email-order-confirmation">
29  <input type="checkbox" id="send_confirmation" name="order[send_confirmation]" value="1" checked="checked"
30  class="admin__control-checkbox"/>
31  <label for="send_confirmation" class="admin__field-label"><?= /* @escapeNotVerified */ __('Email Order Confirmation') ?></label>
32  </div>
33  <?php endif; ?>
34  <div class="actions">
35  <?= $block->getButtonHtml(__('Submit Order'), 'order.submit()', 'save primary') ?>
36  </div>
37 </div>
38 
39 <script>
40 require(['prototype'], function(){
41 
42 //<![CDATA[
43 var sendEmailCheckbox = $('send_confirmation');
44 if (sendEmailCheckbox) {
45  Event.observe(sendEmailCheckbox, 'change', notifyCustomerUpdate);
46  notifyCustomerUpdate();
47 }
48 
49 function notifyCustomerUpdate() {
50  var sendEmailCheckbox = $('send_confirmation');
51  var notifyCustomerCheckbox = $('notify_customer');
52  if (!sendEmailCheckbox || !notifyCustomerCheckbox)
53  return;
54  notifyCustomerCheckbox.disabled = !sendEmailCheckbox.checked;
55 }
56 //]]>
57 
58 window.notifyCustomerUpdate = notifyCustomerUpdate;
59 window.sendEmailCheckbox = sendEmailCheckbox;
60 
61 });
62 </script>
if($block->getTotals()) if( $block->needDisplayBaseGrandtotal())( 'Your credit card will be charged for') ?></th >< td class endif endif
Definition: totals.phtml:17
$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
__()
Definition: __.php:13
$block
Definition: block.php:8