Skip to content

Commit 3be83d0

Browse files
committed
MC-38423: Some Elements of the Shopping Cart page are overlapped with certain view
1 parent 1c3837c commit 3be83d0

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Checkout/view/frontend/templates/cart/item

1 file changed

+5
-1
lines changed

app/code/Magento/Checkout/view/frontend/templates/cart/item/default.phtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
4848
<dt><?= $block->escapeHtml($_option['label']) ?></dt>
4949
<dd>
5050
<?php if (isset($_formatedOptionValue['full_view'])) :?>
51-
<?= $block->escapeHtml($_formatedOptionValue['full_view']) ?>
51+
<?php if (strlen($_formatedOptionValue['full_view']) <= 100) :?>
52+
<?= $block->escapeHtml($_formatedOptionValue['full_view']) ?>
53+
<?php else :?>
54+
<?= $block->escapeHtml($_formatedOptionValue['value'], ['span', 'a']) ?>
55+
<?php endif; ?>
5256
<?php else :?>
5357
<?= $block->escapeHtml($_formatedOptionValue['value'], ['span', 'a']) ?>
5458
<?php endif; ?>

0 commit comments

Comments
 (0)