File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed
Checkout/view/frontend/templates/cart/item/configure Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ var config = {
11
11
relatedProducts : 'Magento_Catalog/js/related-products' ,
12
12
upsellProducts : 'Magento_Catalog/js/upsell-products' ,
13
13
productListToolbarForm : 'Magento_Catalog/js/product/list/toolbar' ,
14
- tierPrice : 'Magento_Catalog/js/tier-price' ,
15
- addToCart : 'Magento_Msrp/js/msrp' ,
16
14
catalogGallery : 'Magento_Catalog/js/gallery' ,
17
15
priceBox : 'Magento_Catalog/js/price-box' ,
18
16
priceOptionDate : 'Magento_Catalog/js/price-option-date' ,
Original file line number Diff line number Diff line change 22
22
</div>
23
23
<?php endif ; ?>
24
24
<div class="actions">
25
- <button type="button "
25
+ <button type="submit "
26
26
title="<?php /* @escapeNotVerified */ echo $ buttonTitle ?> "
27
27
class="action primary tocart"
28
28
id="product-updatecart-button">
Original file line number Diff line number Diff line change @@ -226,6 +226,29 @@ define([
226
226
closePopup : function ( $elem ) {
227
227
$elem . dropdownDialog ( 'close' ) ;
228
228
$ ( document ) . off ( 'mouseup' ) ;
229
+ } ,
230
+
231
+ /**
232
+ * Handler for addToCart action
233
+ */
234
+ _addToCartSubmit : function ( ) {
235
+ this . element . trigger ( 'addToCart' , this . element ) ;
236
+
237
+ if ( this . element . data ( 'stop-processing' ) ) {
238
+ return false ;
239
+ }
240
+
241
+ if ( this . options . addToCartButton ) {
242
+ $ ( this . options . addToCartButton ) . click ( ) ;
243
+
244
+ return false ;
245
+ }
246
+
247
+ if ( this . options . addToCartUrl ) {
248
+ $ ( '.mage-dropdown-dialog > .ui-dialog-content' ) . dropdownDialog ( 'close' ) ;
249
+ }
250
+ $ ( this . options . cartForm ) . submit ( ) ;
251
+
229
252
}
230
253
} ) ;
231
254
You can’t perform that action at this time.
0 commit comments