7
7
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
8
8
$ _product = $ block ->getProduct ();
9
9
?>
10
- <?php if ($ _product ->isSaleable () && $ block ->hasOptions ()): ?>
10
+ <?php if ($ _product ->isSaleable () && $ block ->hasOptions ()) : ?>
11
11
<div id="bundleSummary"
12
12
class="block-bundle-summary"
13
13
data-mage-init='{"sticky":{"container": ".product-add-form"}}'>
@@ -19,11 +19,11 @@ $_product = $block->getProduct();
19
19
<?= $ block ->getImage ($ _product , 'bundled_product_customization_page ' )->toHtml () ?>
20
20
<div class="product-details">
21
21
<strong class="product name"><?= $ block ->escapeHtml ($ _product ->getName ()) ?> </strong>
22
- <?php if ($ _product ->getIsSalable ()): ?>
22
+ <?php if ($ _product ->getIsSalable ()) : ?>
23
23
<p class="available stock" title="<?= $ block ->escapeHtmlAttr (__ ('Availability ' )) ?> ">
24
24
<span><?= $ block ->escapeHtml (__ ('In stock ' )) ?> </span>
25
25
</p>
26
- <?php else : ?>
26
+ <?php else : ?>
27
27
<p class="unavailable stock" title="<?= $ block ->escapeHtmlAttr (__ ('Availability ' )) ?> ">
28
28
<span><?= $ block ->escapeHtml (__ ('Out of stock ' )) ?> </span>
29
29
</p>
@@ -48,7 +48,6 @@ $_product = $block->getProduct();
48
48
</div>
49
49
</div>
50
50
</div>
51
- <?php // phpcs:ignore Magento2.Legacy.PhtmlTemplate ?>
52
51
<script type="text/x-magento-init">
53
52
{
54
53
".product-add-form": {
@@ -58,7 +57,7 @@ $_product = $block->getProduct();
58
57
"slideBackSelector": ".action.customization.back",
59
58
"bundleProductSelector": "#bundleProduct",
60
59
"bundleOptionsContainer": ".product-add-form"
61
- <?php if ($ block ->isStartCustomization ()): ?>
60
+ <?php if ($ block ->isStartCustomization ()) : ?>
62
61
,"autostart": true
63
62
<?php endif ;?>
64
63
}
0 commit comments