File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Catalog/view/frontend/templates/product/view
Checkout/view/frontend/web/js Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 44
44
<script type="text/javascript">
45
45
require([
46
46
"jquery",
47
- "mage/mage"
47
+ "mage/mage",
48
+ "Magento_Catalog/product/view/validation"
48
49
], function($){
49
50
$('#product_addtocart_form').mage('validation', {
50
51
radioCheckboxClosest: '.nested'
Original file line number Diff line number Diff line change 35
35
<script type="text/javascript">
36
36
require([
37
37
'jquery',
38
- 'Magento_Catalog/js/price-box'
38
+ 'Magento_Catalog/js/price-box',
39
+ 'Magento_Catalog/product/view/validation'
39
40
], function($){
40
41
var priceBoxes = $('[data-role=priceBox]');
41
42
Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ define([
36
36
var isAgreementValid = true ;
37
37
agreementFormsGroup . find ( 'form' ) . each (
38
38
function ( ) {
39
- $ ( this ) . validation ( ) ;
40
- isAgreementValid = isAgreementValid && $ ( this ) . validation && $ ( this ) . validation ( 'isValid' ) ;
39
+ isAgreementValid = $ ( this ) . validation ( ) && $ ( this ) . validation ( 'isValid' ) && isAgreementValid ;
41
40
}
42
41
) ;
43
42
You can’t perform that action at this time.
0 commit comments