Radu Posted November 16, 2010 Share Posted November 16, 2010 I developed an ajax based pagination, however, when pressing add to cart the ajax functionality of add to cart does no longer work.jquery has an live function, but do you have experience of how to use it to make add to cart work correctly?because jquery is old I already installed the live pluginThank you! Link to comment Share on other sites More sharing options...
Jonny Joe Posted November 17, 2010 Share Posted November 17, 2010 Even I got the same problem....Someone help Link to comment Share on other sites More sharing options...
Radu Posted December 12, 2010 Author Share Posted December 12, 2010 I come back with the solution1.) because the old version of jquery you need to install livequery plugin, basically place jquery.livequery.js in your header2.) in modules/blockcart/ajax-cart.jschange $('.ajax_add_to_cart_button').unbind('click').click(function(){ var idProduct = $(this).attr('rel').replace('ajax_id_product_', ''); ajaxCart.add(idProduct, null, false, this); return false; }); to $('.ajax_add_to_cart_button').livequery(function() { $(this).unbind('click').click(function(){ var idProduct = $(this).attr('rel').replace('ajax_id_product_', ''); ajaxCart.add(idProduct, null, false, this); return false; }); }); that's it! 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