How I can get cart detail on home page

Solved
Expert
Tourist
12 1 6

 Hi,

How I can get cart detail on home page

0 Likes
NgnLoop
Explorer
60 10 45

Hi, a very good question

 

You can simple call this api

$.getJson('/cart',function(res){console.log(res);})

Expert
Tourist
12 1 6

This is an accepted solution.

thank you for a quick response, let me try this.

Expert
Tourist
12 1 6

it works, thank you