Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Nice, but…

$
0
0

Replies: 0

Just what I was looking for, though I had one problem. The jQuery script selected all “type=submit” buttons instead of a specific one that refreshes the cart. This was a problem because I have the cart and the checkout on the same page, which jumpstarted all address validation unprompted.

Solved it by changing line 2 in custom.js from:
var upd_cart_btn = jQuery(".cart_item").parents('form').find('[type="submit"]');

to:
var upd_cart_btn = jQuery(".cart_item").parents('form').find('[name="update_cart"]');

Otherwise, good stuff.

  • This topic was modified 2 minutes ago by  aminkacz.

Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>