1

Explain the add to cart flow in magento 2. I need which files call after we click add to cart button in magento 2. Please help me

3

When someone hit 'Add to Cart' button. It's called execute method of following class:

Magento/Checkout/Controller/Cart/Add.php

When someone update item from shopping cart page. It's called execute method of following class:

Magento/Checkout/Controller/Cart/UpdatePost.php

When someone delete item. It's called execute method of following class:

Magento/Checkout/Controller/Cart/Delete.php
  • Hey Sohel what about configurable product for add to cart. – Sarvesh Tiwari Jun 30 '17 at 15:33

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.