Merge branch 'main' of https://gitlab.com/shokki.a96/nurgul_get_api_oct3
This commit is contained in:
commit
c69e0f5d7a
|
|
@ -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