From 21fa95c7d652b80f991abc895f3cb336181d9653 Mon Sep 17 00:00:00 2001 From: Kerim Date: Wed, 21 Jun 2023 03:22:26 +0500 Subject: [PATCH] add cart test --- themes/nurgul/layouts/mainN.htm | 3 ++- themes/nurgul/partials/cart/get.htm | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/themes/nurgul/layouts/mainN.htm b/themes/nurgul/layouts/mainN.htm index 0de2fed..dc8a7ec 100755 --- a/themes/nurgul/layouts/mainN.htm +++ b/themes/nurgul/layouts/mainN.htm @@ -76,7 +76,8 @@ function onStart(){ - + + diff --git a/themes/nurgul/partials/cart/get.htm b/themes/nurgul/partials/cart/get.htm index 47204b2..6a75a59 100755 --- a/themes/nurgul/partials/cart/get.htm +++ b/themes/nurgul/partials/cart/get.htm @@ -4,13 +4,13 @@ getCart(); // console.log("qqq"); function getCart() { - // console.log(query); + // console.log(String({{token}})); $.ajax({ url: `https://nurgul.com.tm/app/api/customer/cart`, type: 'GET', dataType: 'json', - headers: { Authorization: 'Bearer {{token}}' }, + headers: {Authorization: 'Bearer {{token}}'}, success: function (data, textStatus, xhr) { console.log(data); },