Skip to content

Commit c4f5054

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 486e93d commit c4f5054

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
@@ -33,9 +33,9 @@ $class = ($_option->getIsRequire()) ? ' required' : '';
3333
<input type="text"
3434
id="options_<?php echo $_option->getId() ?>_text"
3535
class="input-text product-custom-option"
36-
<?php if (!empty($_textValidate)) {
37-
echo 'data-validate=' . json_encode($_textValidate);
38-
} ?>
36+
<?php if (!empty($_textValidate)) {?>
37+
data-validate='<?php echo json_encode($_textValidate);?>'
38+
<?php } ?>
3939
name="options[<?php echo $_option->getId() ?>]"
4040
value="<?php echo $block->escapeHtml($block->getDefaultValue()) ?>"/>
4141
<?php elseif ($_option->getType() == \Magento\Catalog\Model\Product\Option::OPTION_TYPE_AREA): ?>

0 commit comments

Comments
 (0)