Jump to content

Add To Cart without popup on one page only


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...