Don't perform cart update on search submit
If you have a search widget on the cart page which is wrapped in a div (the default wrapper for widgets) the ajax cart would try to update on search submit. This change ensures the search form is excluded on `submit_click`.
This commit is contained in:
parent
7c8fc856e4
commit
d0865bdcc7
|
@ -275,7 +275,7 @@ jQuery( function( $ ) {
|
|||
this.submit_click );
|
||||
$( document ).on(
|
||||
'submit',
|
||||
'div.woocommerce > form',
|
||||
'div.woocommerce:not(.widget_product_search) > form',
|
||||
this.cart_submit );
|
||||
$( document ).on(
|
||||
'click',
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue