Skip to content

Commit 66ea05b

Browse files
committed
MAGETWO-35079: Price of Simple Product isn't recalculated after selecting options on product page
- data-validate attr go out without quotas. Breaks js-validation. Fixed
1 parent c4f5054 commit 66ea05b

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product/view/options/type

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/view/options/type/text.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ $class = ($_option->getIsRequire()) ? ' required' : '';
4949
?>
5050
<textarea id="options_<?php echo $_option->getId() ?>_text"
5151
class="product-custom-option"
52-
<?php if (!empty($_textAreaValidate)) {
53-
echo 'data-validate=' . json_encode($_textAreaValidate);
54-
} ?>
52+
<?php if (!empty($_textAreaValidate)) {?>
53+
data-validate='<?php echo json_encode($_textAreaValidate);?>'
54+
<?php } ?>
5555
name="options[<?php echo $_option->getId() ?>]"
5656
rows="5"
5757
cols="25"><?php echo $block->escapeHtml($block->getDefaultValue()) ?></textarea>

0 commit comments

Comments
 (0)