News:

Looking for documentation? Take a look on our wiki

Main Menu

addtocart JS helper does not bind for image

Started by v1pr, April 14, 2015, 23:51:11 PM

Previous topic - Next topic

v1pr

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") {

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/