Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
iframe.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
11 $params = $block->getParams();
12 
13 ?>
14 <html>
15 <head>
16 <script>
17 <?php if (isset($params['redirect'])): ?>
18  window.location="<?= $block->escapeUrl($params['redirect']) ?>";
19 <?php elseif (isset($params['redirect_parent'])): ?>
20  window.top.location="<?= $block->escapeUrl($params['redirect_parent']) ?>";
21 <?php elseif (isset($params['error_msg'])): ?>
22  window.top.alert(<?= /* @noEscape */ $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($params['error_msg']) ?>);
23 <?php elseif (isset($params['order_success'])): ?>
24  window.top.location = "<?= $block->escapeUrl($params['order_success']) ?>";
25 <?php else: ?>
26  var require = window.top.require;
27  require(['jquery'], function($) {
28  $('#edit_form').trigger('processStop');
29 
30  $("input[name='payment[cc_number]']").prop('disabled', true);
31  $("select[name='payment[cc_type]']").prop('disabled', true);
32  $("select[name='payment[cc_exp_month]']").prop('disabled', true);
33  $("select[name='payment[cc_exp_year]']").prop('disabled', true);
34  $("input[name='payment[cc_cid]']").prop('disabled', true);
35 
36  $('#edit_form').trigger('realOrder');
37  });
38 <?php endif; ?>
39 </script>
40 </head>
41 <body>
42 </body>
43 </html>
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
$block
Definition: block.php:8
$params
Definition: iframe.phtml:12
endif
Definition: iframe.phtml:20