VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: v1pr on April 14, 2015, 23:51:11 PM

Title: addtocart JS helper does not bind for image
Post by: v1pr on April 14, 2015, 23:51:11 PM
I've found that if I use an input type="image" as the addtocart form submit it does not work. I've made the fix for it, please implement if possible:

/components/com_virtuemart/assets/js/vmprices.js:

160c160
<     if ( jQuery(e.originalEvent.target).prop("type") == "submit" ||  jQuery(e.originalEvent.target).prop("type") == "image" ) {
---
>     if (jQuery(e.originalEvent.target).prop("type") == "submit") {
Title: Re: addtocart JS helper does not bind for image
Post by: Milbo on April 15, 2015, 03:17:39 AM
thx, added