add cart test

This commit is contained in:
Kerim 2023-06-21 00:53:32 +05:00
parent 776c7e8c66
commit afbfc363c4
1 changed files with 8 additions and 2 deletions

View File

@ -17,12 +17,18 @@
console.log(JSON.stringify(product));
$.ajax({
async: true,
crossDomain: true,
url: 'https://nurgul.com.tm/app/api/customer/cart/add/' + String(prodId),
data: JSON.stringify(product),
type: 'POST',
headers: {
'Authorization': 'Bearer {{token}}'
"authorization": "Bearer {{token}}",
"content-type": "application/json",
"cache-control": "no-cache",
// "postman-token": "c4c3ed17-bdc6-1e98-4575-f1172f789d93"
},
processData: false,
data: JSON.stringify(product),
beforeSend: function () {
$('#loader_add').show();
},