add cart test
This commit is contained in:
parent
0fb5bf2d16
commit
15229cb82b
|
|
@ -11,16 +11,14 @@
|
|||
product.product_id = prodId;
|
||||
product.quantity = qty;
|
||||
|
||||
console.log('{{token}}');
|
||||
console.log('Bearer {{token}}');
|
||||
console.log(prodId);
|
||||
console.log(qty);
|
||||
console.log(JSON.stringify(product));
|
||||
|
||||
$.ajax({
|
||||
url: 'https://nurgul.com.tm/app/api/customer/cart/add/' + prodId,
|
||||
url: 'https://nurgul.com.tm/app/api/customer/cart/add/' + String(prodId),
|
||||
data: JSON.stringify(product),
|
||||
processData: false,
|
||||
contentType: false,
|
||||
type: 'POST',
|
||||
headers: {
|
||||
'Authorization': 'Bearer {{token}}',
|
||||
|
|
|
|||
Loading…
Reference in New Issue