I Need to find out Home cart counter section in magento 2 ,
1 Answer
Find minicart.phtml in your theme at
app\design\frontend\[NAMESPACE]\[THEME]\Magento_Checkout\templates\cart\minicart.phtml
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 Jul 15, 2019 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. Jul 15, 2019 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 ? Jul 15, 2019 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 Jul 15, 2019 at 10:14
-
@ShafeelSha in class counter-number you can update the number or text that will come in store front Jul 15, 2019 at 10:17