• Resolved Bojan121

    (@bojan121)


    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.

    • This topic was modified 8 years, 5 months ago by Bojan121.
Viewing 1 replies (of 1 total)
  • Plugin Author Conversios

    (@tatvic)

    Hi,

    Thank you so much for the valuable feedback! 🙂

    We’ll surely look into this & make the suggested changes in the next release of our plugin.

    Happy Analyzing!

    Thanks & Regards!

Viewing 1 replies (of 1 total)

The topic ‘Javascript click handler selector’ is closed to new replies.