add cart test
This commit is contained in:
parent
d84e34ab39
commit
21fa95c7d6
|
|
@ -76,7 +76,8 @@ function onStart(){
|
||||||
<!-- preloader area end -->
|
<!-- preloader area end -->
|
||||||
|
|
||||||
<!-- All JS Plugins -->
|
<!-- 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>
|
<script src="{{'assets/js/plugins.js'|theme}}"></script>
|
||||||
<!-- Main JS -->
|
<!-- Main JS -->
|
||||||
<script src="{{'assets/js/main.js'|theme}}"></script>
|
<script src="{{'assets/js/main.js'|theme}}"></script>
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,13 @@
|
||||||
getCart();
|
getCart();
|
||||||
// console.log("qqq");
|
// console.log("qqq");
|
||||||
function getCart() {
|
function getCart() {
|
||||||
// console.log(query);
|
// console.log(String({{token}}));
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `https://nurgul.com.tm/app/api/customer/cart`,
|
url: `https://nurgul.com.tm/app/api/customer/cart`,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
headers: { Authorization: 'Bearer {{token}}' },
|
headers: {Authorization: 'Bearer {{token}}'},
|
||||||
success: function (data, textStatus, xhr) {
|
success: function (data, textStatus, xhr) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue