File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/Catalog/view/frontend Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 32
32
<button type="submit"
33
33
title="<?= /* @escapeNotVerified */ $ buttonTitle ?> "
34
34
class="action primary tocart"
35
- id="product-addtocart-button">
35
+ id="product-addtocart-button" disabled >
36
36
<span><?= /* @escapeNotVerified */ $ buttonTitle ?> </span>
37
37
</button>
38
38
<?= $ block ->getChildHtml ('' , true ) ?>
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ define([
13
13
$ . widget ( 'mage.productValidate' , {
14
14
options : {
15
15
bindSubmit : false ,
16
- radioCheckboxClosest : '.nested'
16
+ radioCheckboxClosest : '.nested' ,
17
+ addToCartButtonSelector : '.action.tocart'
17
18
} ,
18
19
19
20
/**
@@ -41,6 +42,7 @@ define([
41
42
return false ;
42
43
}
43
44
} ) ;
45
+ $ ( this . options . addToCartButtonSelector ) . attr ( 'disabled' , false ) ;
44
46
}
45
47
} ) ;
46
48
You can’t perform that action at this time.
0 commit comments