Question

How to change the text "You have no items in your shopping cart." in mini cart in Magento 2

art

Was it helpful?

Solution

Please check with below path.

app/design/frontend/Magento/theme-name/Magento_Checkout/templates/cart/noItems.phtml

OTHER TIPS

Create en_US.csv file in your module vendor/Module/i18n/en_US.csv
Add below text in en_US.csv file.

"You have no items in your shopping cart.","Add Your Changed Text Here."

Flush Your Magento cache php bin/magento c:f

Copy This File Into Your Theme :-

/vendor/magento/module-checkout/view/frontend/web/template/minicart/content.html

See Line no. 78

 translate="'You have no items in your shopping cart.'"

You can change according to your requirements at above place.

Remove var folder from root and remove pub/static/frontend folder.

You must have run command php bin/magento setup:static-content:deploy

Clear your browser cache and check.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top