1

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.

1

I think this diagram will help you to understand the situation,

enter image description here

Credit: Asrar

Source: Link

  • Thanks man!! the part with the config method was what i was looking for – Daniel Lavric Jan 22 '18 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.