This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WooCommerce Add to cart AJAX. | |
(function ($) { | |
$.fn.serializeArrayAll = function () { | |
var rCRLF = /\r?\n/g; | |
return this.map(function () { | |
return this.elements ? jQuery.makeArray(this.elements) : this; | |
}) | |
.map(function (i, elem) { | |
var val = jQuery(this).val(); | |
if (val == null) { |