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.

0

1 Answer 1

1

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

enter image description here

Credit: Asrar

Source: Link

1
  • Thanks man!! the part with the config method was what i was looking for Jan 22, 2018 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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