File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
app/code/Magento/Checkout/view/frontend/web/js/cart Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -86,19 +86,20 @@ define([
8686 url : window . location . href ,
8787 type : 'GET' ,
8888 data : { ajax : 1 } ,
89- success : function ( response ) {
89+ success : function ( response ) {
9090 // Extract and replace cart form
9191 const newContent = $ ( response ) . find ( '#form-validate' ) ;
92- $ ( '#form-validate' ) . replaceWith ( newContent ) ;
9392
93+ // Replace the form with the new content
94+ $ ( '#form-validate' ) . replaceWith ( newContent ) ;
9495 // Reinitialize widgets on new content
9596 $ ( '#form-validate' ) . trigger ( 'contentUpdated' ) ;
9697 } ,
97- error : function ( ) {
98+ error : function ( ) {
9899 $ ( 'body' ) . trigger ( 'processStop' ) ;
99100 $ ( 'body' ) . data ( 'cart-synced' , false ) ;
100101 } ,
101- complete : function ( ) {
102+ complete : function ( ) {
102103 $ ( 'body' ) . trigger ( 'processStop' ) ;
103104 }
104105 } ) ;
You can’t perform that action at this time.
0 commit comments