Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-payment
view
adminhtml
templates
transparent
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
elseif(isset( $params[ 'redirect_parent']))
Definition:
iframe.phtml:17
$block
$block
Definition:
block.php:8
$params
$params
Definition:
iframe.phtml:12
endif
endif
Definition:
iframe.phtml:20