Skip to content

Commit 846a967

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-59: Importing Bundle with '?' in the option title corrupts how option is displayed and prevents product from being added to cart
1 parent 20b05e5 commit 846a967

File tree

1 file changed

+5
-4
lines changed
  • app/code/Magento/Bundle/view/frontend/templates/catalog/product/view

1 file changed

+5
-4
lines changed

app/code/Magento/Bundle/view/frontend/templates/catalog/product/view/summary.phtml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
88
$_product = $block->getProduct();
99
?>
10-
<?php if ($_product->isSaleable() && $block->hasOptions()) : ?>
10+
<?php if ($_product->isSaleable() && $block->hasOptions()) :?>
1111
<div id="bundleSummary"
1212
class="block-bundle-summary"
1313
data-mage-init='{"sticky":{"container": ".product-add-form"}}'>
@@ -19,11 +19,11 @@ $_product = $block->getProduct();
1919
<?= $block->getImage($_product, 'bundled_product_customization_page')->toHtml() ?>
2020
<div class="product-details">
2121
<strong class="product name"><?= $block->escapeHtml($_product->getName()) ?></strong>
22-
<?php if ($_product->getIsSalable()) : ?>
22+
<?php if ($_product->getIsSalable()) :?>
2323
<p class="available stock" title="<?= $block->escapeHtmlAttr(__('Availability')) ?>">
2424
<span><?= $block->escapeHtml(__('In stock')) ?></span>
2525
</p>
26-
<?php else : ?>
26+
<?php else :?>
2727
<p class="unavailable stock" title="<?= $block->escapeHtmlAttr(__('Availability')) ?>">
2828
<span><?= $block->escapeHtml(__('Out of stock')) ?></span>
2929
</p>
@@ -48,6 +48,7 @@ $_product = $block->getProduct();
4848
</div>
4949
</div>
5050
</div>
51+
<?php // phpcs:ignore Magento2.Legacy.PhtmlTemplate?>
5152
<script type="text/x-magento-init">
5253
{
5354
".product-add-form": {
@@ -57,7 +58,7 @@ $_product = $block->getProduct();
5758
"slideBackSelector": ".action.customization.back",
5859
"bundleProductSelector": "#bundleProduct",
5960
"bundleOptionsContainer": ".product-add-form"
60-
<?php if ($block->isStartCustomization()) : ?>
61+
<?php if ($block->isStartCustomization()) :?>
6162
,"autostart": true
6263
<?php endif;?>
6364
}

0 commit comments

Comments
 (0)