add cart test
This commit is contained in:
parent
776c7e8c66
commit
afbfc363c4
|
|
@ -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();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue