I am having png image. It should be act us mini-cart and i need to change the design of cart popup.

I don't know the paths for that.

3 Answers 3


Magento2 manage the minicart using

  • knockout Js which is using HTML template and localstorege.
  • Localstorege manage via Private content

Minicart related HTML and Js file:

HTML files located at


JS file/folder which is doing knock js operator





PHTML File https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Checkout/view/frontend/templates/cart/minicart.phtml

Before, working on minicart, you have to understand who Knockout js working and

How Private content of specific to individual users is managed and used at local storage as private content storeage at the web browser.

  • I am having cart as a .png image ..how can i replace with existing cart Commented Sep 17, 2018 at 4:50
  • SUBBULAKSHMI G, you have start yourself, then i will help if you will get any issue. You have asking support like : i have a requirement and i want to implement it.This type of requirement need long and brief and cannot possible on MSE
    – Amit Bera
    Commented Sep 17, 2018 at 6:14

Navigate to the following file paths to get the structure of minicart.


  • i have added my html design in the minicart.phtml ,..it is not reflecting Commented Sep 14, 2018 at 5:17
  • remove generated, var/cache, var/page_cache, var/view_preprocessed and check again. Commented Sep 14, 2018 at 5:22
  • I am having cart as a .png image ..how can i replace with existing cart Commented Sep 17, 2018 at 4:50

You can try below extension to solved your problem:



Your Answer

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

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