Fix Mini Cart Issues in Magento by Updating content.html
If you are facing issues with the Magento mini cart not updating or displaying correctly, the problem may be due to outdated or overridden theme files. One commonly missed step is updating the content.html file inside the mini-cart directory.
Below is a complete step-by-step solution to resolve the issue.
Step 1: Replace minicart.phtml File
Replace the minicart.phtml file from your theme with the core Magento template.
Need help with Magento?
Get a free strategy session with our experts — no commitment required.
Theme Path:
app/design/frontend/Theme_namespace/Theme_module/Magento_Checkout/templates/cart/minicart.phtml
Core Magento Path:
vendor/magento/module-checkout/view/frontend/templates/cart/minicart.phtml
Step 2: Replace content.html File
Update the content.html file in your theme’s mini-cart directory by replacing it with the default Magento version.
Theme Path:
app/design/frontend/Theme_namespace/Theme_module/Magento_Checkout/web/template/minicart/content.html
Core Magento Path:
vendor/magento/module-checkout/view/frontend/web/template/minicart/content.html
Step 3: Clear Cache and Deploy Static Content
After updating the files, make sure to clear cache and redeploy static content to apply changes.
Run Cache Clean:
php bin/magento cache:clean
Deploy Static Content:
php bin/magento setup:static-content:deploy
Final Notes
- Always take a backup before replacing theme files.
- If you're using a child theme, ensure overrides are properly maintained.
- Check for any custom JS conflicts if the issue persists.



