Javascript click handler selector
-
Great plugin, I’m using it on a highly customized shop and noticed that your js click handler selector is targeting only buttons:
jQuery("button[class*=single_add_to_cart_button]")So, if the “add to cart” element is a
<a>or<input>tag it won’t work. Can I make the suggestion of editing the selector so it listens to all clicks with that class regardless of the tag? It’s a simple fix, just remove the “button” in the selector so it looks like this:
jQuery("[class*=single_add_to_cart_button]")It’s a simple change that will make the plugin even more compatible with all kind of customized shops, without causing problems for anyone.
Can you please add the change in the next version? Thanks.
The topic ‘Javascript click handler selector’ is closed to new replies.