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