I have this ajaxForm:
$('.simple-checkout').ajaxForm({
success: function (response) {
console.log(response);
alert("Success");
$('.cart-value').load(location.href);
},
error: function (response) {
console.log(response);
alert("Error");
}
});
Console log looks like this:
{success: true, data: {…}} data : action : "create_ajax_checkout" add-to-cart : "530" order_date : "2018-02-13, kedd" quantity : "1" thwepof_product_fields : "order_date" proto : Object success : true proto : Object
my question is can I get the response
's quantity somehow?
response
contains that string. And I need the quantity value from that.