News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

term-of-service avoid ajax

Started by ydl, July 13, 2016, 08:34:24 AM

Previous topic - Next topic

ydl

In the shopping cart I have a selectios (shippment method) and a check box (terms of service)

On both changes and AJAX request is fired.

Is it possible to disable the AJAX of the terms of service?

Jumbo!

You can add the following JavaScript to your template.

(function($){
$(function() {
$('input[name="tos"][type="checkbox"]').off('change').on('change', function(e) {
e.preventDefault();
return false;
});
});
})(jQuery);

ydl