jQuery: get order id from json response – Shopify
I want to get the value of the json response. I wrote an Ajax function as below: $.ajax({ url: '/v1/shopify-Ajax/ajax.php', method: 'post', data: {datalog: dataLog, variant: $('#prod').val()} }) .success(function(response){ //window.location.href = "/v1/thank-you.php"; }) I get the response from the server…