Hoes does the cart items get inside minicart? More precisely inside minicart.js there is a variable cart that has a field items that contains the same products as the cart. How does that cart variable gets populated?
I ask this because i have another table that contains reserved products and i'd like to know how can i have inside minicart.js a variable of my own that has items from my custom table.