How to change text “You have no items in your shopping cart.” in minicart in magento 2
-
05-03-2021 - |
المحلول
Please check with below path.
app/design/frontend/Magento/theme-name/Magento_Checkout/templates/cart/noItems.phtml
نصائح أخرى
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.
لا تنتمي إلى magento.stackexchange