I have sent data using AJAX. I have used this code. I can handle & recive productInfo:JSON
data using PHP but can't be handling datastring
. Because showing like below image. How can handle or receive datastring
using PHP?
var datastring = jQuery("#chackOutBillingIfor").serialize();
jQuery.ajax({
url: "/wp-admin/admin-ajax.php?action=chackOut",
data: {
productInfo:JSON.stringify(cart),
billingInfo:JSON.stringify(datastring),
},
type: 'POST',
cache: false,
})