Codify Solutions Posted October 22, 2016 Share Posted October 22, 2016 Hello everyone, I have a site where 2 modules installed. One module is modalcart_3 and another module is mine. With my module user will enter quantity for each attribute and after then click on add to cart button then it works. But when modalcart module installed this module is also worked on add to cart button so this module skipped my module ajax code and my module is not working at all. Mymodule js code for add to cart is : $(document).on('click', '#add_to_cart button', function(e){ e.preventDefault(); if ($(this).prop('disabled') == 'disabled') return; ajaxCart.addProducts(true, this, false); }); Its working fine but its conflicting with modalcart module. second thing I noticed that to see view source while adding the sequence of js files modalcart module js file add first and then my module file as module and file name start with "W" so is that the reason ? Its really strange problem for me. Please help if anyone have idea. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now