File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
app/code/Magento/Catalog/view
frontend/templates/product/view/options/type Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 3
3
* See COPYING.txt for license details.
4
4
*/
5
5
define ( [
6
+ 'jquery' ,
6
7
'underscore'
7
- ] , function ( _ ) {
8
+ ] , function ( $ , _ ) {
8
9
'use strict' ;
9
10
10
11
var globalPriceFormat = {
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ $class = ($_option->getIsRequire()) ? ' required' : '';
33
33
<input type="text"
34
34
id="options_<?php echo $ _option ->getId () ?> _text"
35
35
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 } ?>
39
39
name="options[<?php echo $ _option ->getId () ?> ]"
40
40
value="<?php echo $ block ->escapeHtml ($ block ->getDefaultValue ()) ?> "/>
41
41
<?php elseif ($ _option ->getType () == \Magento \Catalog \Model \Product \Option::OPTION_TYPE_AREA ): ?>
@@ -49,9 +49,9 @@ $class = ($_option->getIsRequire()) ? ' required' : '';
49
49
?>
50
50
<textarea id="options_<?php echo $ _option ->getId () ?> _text"
51
51
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 } ?>
55
55
name="options[<?php echo $ _option ->getId () ?> ]"
56
56
rows="5"
57
57
cols="25"><?php echo $ block ->escapeHtml ($ block ->getDefaultValue ()) ?> </textarea>
You can’t perform that action at this time.
0 commit comments