Skip to content

Commit 1e6d6a3

Browse files
committed
Merge remote-tracking branch 'origin/MC-38398' into 2.3.7-develop-pr150
2 parents 8c34e4d + 833a303 commit 1e6d6a3

File tree

1 file changed

+18
-18
lines changed
  • app/code/Magento/Multishipping/view/frontend/templates/checkout

1 file changed

+18
-18
lines changed

app/code/Magento/Multishipping/view/frontend/templates/checkout/billing.phtml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
$methodsCount = count($methods);
7373
$methodsForms = $block->hasFormTemplates() ? $block->getFormTemplates(): [];
7474

75-
foreach ($methods as $_method) :
75+
foreach ($methods as $_method):
7676
$code = $_method->getCode();
7777
$checked = $block->getSelectedMethodCode() === $code;
7878

@@ -82,7 +82,7 @@
8282
?>
8383
<div data-bind="scope: 'payment_method_<?= $block->escapeHtml($code);?>'">
8484
<dt class="item-title">
85-
<?php if ($methodsCount > 1) : ?>
85+
<?php if ($methodsCount > 1): ?>
8686
<input type="radio"
8787
id="p_method_<?= $block->escapeHtml($code); ?>"
8888
value="<?= $block->escapeHtmlAttr($code); ?>"
@@ -93,11 +93,11 @@
9393
checked: isChecked,
9494
click: selectPaymentMethod,
9595
visible: isRadioButtonVisible()"
96-
<?php if ($checked) : ?>
96+
<?php if ($checked): ?>
9797
checked="checked"
9898
<?php endif; ?>
9999
class="radio"/>
100-
<?php else : ?>
100+
<?php else: ?>
101101
<input type="radio"
102102
id="p_method_<?= $block->escapeHtml($code); ?>"
103103
value="<?= $block->escapeHtmlAttr($code); ?>"
@@ -112,7 +112,7 @@
112112
<?= $block->escapeHtml($_method->getTitle()) ?>
113113
</label>
114114
</dt>
115-
<?php if ($html = $block->getChildHtml('payment.method.' . $code)) : ?>
115+
<?php if ($html = $block->getChildHtml('payment.method.' . $code)): ?>
116116
<dd class="item-content <?= $checked ? '' : 'no-display'; ?>">
117117
<?= /* @noEscape */ $html; ?>
118118
</dd>
@@ -171,20 +171,20 @@
171171
'domReady!'
172172
], function(quote, $) {
173173
quote.billingAddress({
174-
city: '<?= /* @noEscape */ $block->getAddress()->getCity() ?>',
175-
company: '<?= /* @noEscape */ $block->getAddress()->getCompany(); ?>',
176-
countryId: '<?= /* @noEscape */ $block->getAddress()->getCountryId(); ?>',
177-
customerAddressId: '<?= /* @noEscape */ $block->getAddress()->getCustomerAddressId(); ?>',
178-
customerId: '<?= /* @noEscape */ $block->getAddress()->getCustomerId(); ?>',
179-
fax: '<?= /* @noEscape */ $block->getAddress()->getFax(); ?>',
180-
firstname: '<?= /* @noEscape */ $block->getAddress()->getFirstname(); ?>',
181-
lastname: '<?= /* @noEscape */ $block->getAddress()->getLastname(); ?>',
182-
postcode: '<?= /* @noEscape */ $block->getAddress()->getPostcode(); ?>',
183-
regionId: '<?= /* @noEscape */ $block->getAddress()->getRegionId(); ?>',
184-
regionCode: '<?= /* @noEscape */ $block->getAddress()->getRegionCode() ?>',
185-
region: '<?= /* @noEscape */ $block->getAddress()->getRegion(); ?>',
174+
city: '<?= $block->escapeJs($block->getAddress()->getCity()); ?>',
175+
company: '<?= $block->escapeJs($block->getAddress()->getCompany()); ?>',
176+
countryId: '<?= $block->escapeJs($block->getAddress()->getCountryId()); ?>',
177+
customerAddressId: '<?= $block->escapeJs($block->getAddress()->getCustomerAddressId()); ?>',
178+
customerId: '<?= $block->escapeJs($block->getAddress()->getCustomerId()); ?>',
179+
fax: '<?= $block->escapeJs($block->getAddress()->getFax()); ?>',
180+
firstname: '<?= $block->escapeJs($block->getAddress()->getFirstname()); ?>',
181+
lastname: '<?= $block->escapeJs($block->getAddress()->getLastname()); ?>',
182+
postcode: '<?= $block->escapeJs($block->getAddress()->getPostcode()); ?>',
183+
regionId: '<?= $block->escapeJs($block->getAddress()->getRegionId()); ?>',
184+
regionCode: '<?= $block->escapeJs($block->getAddress()->getRegionCode()); ?>',
185+
region: '<?= $block->escapeJs($block->getAddress()->getRegion()); ?>',
186186
street: <?= /* @noEscape */ json_encode($block->getAddress()->getStreet()); ?>,
187-
telephone: '<?= /* @noEscape */ $block->getAddress()->getTelephone(); ?>'
187+
telephone: '<?= $block->escapeJs($block->getAddress()->getTelephone()); ?>'
188188
});
189189
});
190190
//]]>

0 commit comments

Comments
 (0)