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 3232 <button type="submit"
3333 title="<?= /* @escapeNotVerified */ $ buttonTitle ?> "
3434 class="action primary tocart"
35- id="product-addtocart-button">
35+ id="product-addtocart-button" disabled >
3636 <span><?= /* @escapeNotVerified */ $ buttonTitle ?> </span>
3737 </button>
3838 <?= $ block ->getChildHtml ('' , true ) ?>
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ define([
1313 $ . widget ( 'mage.productValidate' , {
1414 options : {
1515 bindSubmit : false ,
16- radioCheckboxClosest : '.nested'
16+ radioCheckboxClosest : '.nested' ,
17+ addToCartButtonSelector : '.action.tocart'
1718 } ,
1819
1920 /**
@@ -41,6 +42,7 @@ define([
4142 return false ;
4243 }
4344 } ) ;
45+ $ ( this . options . addToCartButtonSelector ) . attr ( 'disabled' , false ) ;
4446 }
4547 } ) ;
4648
You can’t perform that action at this time.
0 commit comments