enter image description here

I Need to find out Home cart counter section in magento 2 ,


Find minicart.phtml in your theme at


If not exist in your theme then copy from vendor\magento\module-checkout\view\frontend\templates\cart\minicart.phtml and do needful changes.

In minicart.phtml a span having a class counter, the data of counter coming as minicart icon in store front.

  • hi sir l'm already tested with som static values in minicart.phtml, but the static values only display in checkout page – Shafeel Sha Jul 15 '19 at 10:07
  • @ShafeelSha static values only display in checkout page not getting what you want to say you are looking for minicart, now you asking for checkout page, please provide more detail so i can help you. – Kanhaiya lal Jul 15 '19 at 10:09
  • sir i need to print '123' values for testing only my cart counter section . when i edit minicart.phtml it display in checkout and other pages also but not in home page !! why ? – Shafeel Sha Jul 15 '19 at 10:12
  • @ShafeelSha if possible can you please share which magento version you are using and which theme, if possible can you share the dev url of your env where you want this code change so i can see. just share if possible so i can check and let you know – Kanhaiya lal Jul 15 '19 at 10:14
  • @ShafeelSha in class counter-number you can update the number or text that will come in store front – Kanhaiya lal Jul 15 '19 at 10:17

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.