File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed
Block/Order/Item/Renderer
view/frontend/templates/order
creditmemo/items/renderer Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public function getFormatedOptionValue($optionValue)
182
182
183
183
if ($ this ->string ->strlen ($ optionValue ) > 55 ) {
184
184
$ result ['value ' ] = $ result ['value ' ]
185
- . ' <a href="#" class="dots tooltip toggle" onclick="return false"> ...</a> ' ;
185
+ . ' ... ' ;
186
186
$ optionValue = nl2br ($ optionValue );
187
187
$ result = array_merge ($ result , ['full_view ' => $ optionValue ]);
188
188
}
Original file line number Diff line number Diff line change 17
17
<?php if (!$ block ->getPrintStatus ()) : ?>
18
18
<?php $ _formatedOptionValue = $ block ->getFormatedOptionValue ($ _option ) ?>
19
19
<dd<?= (isset ($ _formatedOptionValue ['full_view ' ]) ? ' class="tooltip wrapper" ' : '' ) ?> >
20
- <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ]) ?>
20
+ <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ], [ ' a ' , ' img ' ] ) ?>
21
21
<?php if (isset ($ _formatedOptionValue ['full_view ' ])) : ?>
22
22
<div class="tooltip content">
23
23
<dl class="item options">
Original file line number Diff line number Diff line change 17
17
<?php if (!$ block ->getPrintStatus ()) : ?>
18
18
<?php $ _formatedOptionValue = $ block ->getFormatedOptionValue ($ _option ) ?>
19
19
<dd<?= (isset ($ _formatedOptionValue ['full_view ' ]) ? ' class="tooltip wrapper" ' : '' ) ?> >
20
- <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ]) ?>
20
+ <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ], [ ' a ' , ' img ' ] ) ?>
21
21
<?php if (isset ($ _formatedOptionValue ['full_view ' ])) : ?>
22
22
<div class="tooltip content">
23
23
<dl class="item options">
Original file line number Diff line number Diff line change @@ -16,17 +16,19 @@ $_item = $block->getItem();
16
16
<dt><?= $ block ->escapeHtml ($ _option ['label ' ]) ?> </dt>
17
17
<?php if (!$ block ->getPrintStatus ()) : ?>
18
18
<?php $ _formatedOptionValue = $ block ->getFormatedOptionValue ($ _option ) ?>
19
- <dd>
19
+ <dd<?= (isset ($ _formatedOptionValue ['full_view ' ]) ? ' class="tooltip wrapper" ' : '' ) ?> >
20
+ <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ], ['a ' , 'img ' ]) ?>
20
21
<?php if (isset ($ _formatedOptionValue ['full_view ' ])) : ?>
21
- <?= $ block ->escapeHtml ($ _formatedOptionValue ['full_view ' ], ['a ' ]) ?>
22
- <?php else : ?>
23
- <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ], ['a ' ]) ?>
22
+ <div class="tooltip content">
23
+ <dl class="item options">
24
+ <dt><?= $ block ->escapeHtml ($ _option ['label ' ]) ?> </dt>
25
+ <dd><?= $ block ->escapeHtml ($ _formatedOptionValue ['full_view ' ]) ?> </dd>
26
+ </dl>
27
+ </div>
24
28
<?php endif ; ?>
25
29
</dd>
26
30
<?php else : ?>
27
- <dd>
28
- <?= /* @noEscape */ nl2br ($ block ->escapeHtml ($ _option ['print_value ' ] ?? $ _option ['value ' ])) ?>
29
- </dd>
31
+ <dd><?= $ block ->escapeHtml ((isset ($ _option ['print_value ' ]) ? $ _option ['print_value ' ] : $ _option ['value ' ])) ?> </dd>
30
32
<?php endif ; ?>
31
33
<?php endforeach ; ?>
32
34
</dl>
Original file line number Diff line number Diff line change 16
16
<?php if (!$ block ->getPrintStatus ()) : ?>
17
17
<?php $ _formatedOptionValue = $ block ->getFormatedOptionValue ($ _option ) ?>
18
18
<dd<?= (isset ($ _formatedOptionValue ['full_view ' ]) ? ' class="tooltip wrapper" ' : '' ) ?> >
19
- <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ]) ?>
19
+ <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ], [ ' a ' , ' img ' ] ) ?>
20
20
<?php if (isset ($ _formatedOptionValue ['full_view ' ])) : ?>
21
21
<div class="tooltip content">
22
22
<dl class="item options">
You can’t perform that action at this time.
0 commit comments