Skip to main content
Guides & TutorialsMagentoE-CommerceWeb Development

Magento 2.x Minicart Knockout TypeError

Apisylux TeamJune 1, 20202 min read

Knowledge map

Article briefing

Published
Guides & Tutorials
Topic category
2 min read
Estimated reading time
Apisylux Team
Author
June 1, 2020
Published
August 14, 2026
Last updated
3
Tags
1
Category
2m
Read Time
1
Next Step
Magento 2.x Minicart Knockout TypeError
Magento 2.x Minicart Knockout TypeError article image
Magento 2.x Minicart Knockout TypeError - preserved image from the migrated article.

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.

Free Consultation

Need help with Guides & Tutorials?

Get a free strategy session with our experts — no commitment required.

Contact Us

Step 1: Replace minicart.phtml File

Replace the minicart.phtml file from your theme with the core Magento template.

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.
Launch readiness

Let's turn your website into a working growth system.

Bring the goal. We'll help shape the offer, interface, lead flow, launch plan, and next actions so your website feels ready for real buyers.

Start Your Project

Project readiness panel

Online

Scope clarity

Discovery ready

Performance plan

Speed-first build

Launch path

Secure deploy

Lead flow

CRM-ready handoff

Free

Consultation

<24h

Response

Clear

Plan

Next action

Share your current website, project goal, and deadline. We'll return with a practical improvement path and first-step estimate.