0

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?

2
  • What did you mean as 'response's quantity'? Commented Feb 12, 2018 at 10:14
  • @MaximSarandi response contains that string. And I need the quantity value from that. Commented Feb 12, 2018 at 10:15

1 Answer 1

0

length might help yous. Look here or here.

Not the answer you're looking for? Browse other questions tagged or ask your own question.