add cart test

This commit is contained in:
Kerim 2023-06-21 03:22:26 +05:00
parent d84e34ab39
commit 21fa95c7d6
2 changed files with 4 additions and 3 deletions

View File

@ -76,7 +76,8 @@ function onStart(){
<!-- preloader area end -->
<!-- All JS Plugins -->
<script src="{{'assets/jquery.js'|theme}}"></script>
<!-- <script src="{{'assets/jquery.js'|theme}}"></script> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="{{'assets/js/plugins.js'|theme}}"></script>
<!-- Main JS -->
<script src="{{'assets/js/main.js'|theme}}"></script>

View File

@ -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);
},