We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4f5054 commit 66ea05bCopy full SHA for 66ea05b
app/code/Magento/Catalog/view/frontend/templates/product/view/options/type/text.phtml
@@ -49,9 +49,9 @@ $class = ($_option->getIsRequire()) ? ' required' : '';
49
?>
50
<textarea id="options_<?php echo $_option->getId() ?>_text"
51
class="product-custom-option"
52
- <?php if (!empty($_textAreaValidate)) {
53
- echo 'data-validate=' . json_encode($_textAreaValidate);
54
-} ?>
+ <?php if (!empty($_textAreaValidate)) {?>
+ data-validate='<?php echo json_encode($_textAreaValidate);?>'
+ <?php } ?>
55
name="options[<?php echo $_option->getId() ?>]"
56
rows="5"
57
cols="25"><?php echo $block->escapeHtml($block->getDefaultValue()) ?></textarea>
0 commit comments