treyj45 Posted April 6, 2016 Share Posted April 6, 2016 Hi,I am using the Ajax cart all over my site, this makes a popup when I add something to cart. I want to keep this functionality on all pages except one. I have an order form module where I do not want there to be a pop up because people can add multiple products at once. I want it to go straight to the cart when they hit add to cart. Heres the code: $('.orderform_content table tbody tr').each(function () { if ($(this).find('.quantity_wanted').val() > 0) { var currentRow = $(this); ajaxCart.add(currentRow.find('.name .id_product').val(), currentRow.find('.name .id_product_attribute').val(), false, this, currentRow.find('.quantity_wanted').val(), null); if (empty == 1) currentRow.find('.quantity_wanted').val("0"); } }); Is there a way to make ajax cart prevent the popup and go to the cart once done? Or is there a different way I can add products to cart without javascript? 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