1

I am trying to move the minicart from the header into the header panel. To do this, I need to update the default.xml file located here:

vendor/magento/module-checkout/view/frontend/layout/default.xml

I believe this is done by copying this file to my local theme directory, here:

app/design/frontend/myvendor/mytheme/Magento_Checkout/layout/default.xml

However, when making this copy (and no code changes), I am seeing errors related to knockoutjs and the minicart modal no longer renders correctly when the cart is clicked.

That said, changes to this overriding file do correctly render, e.g. renaming the reference container to header.panel does move the minicart icon.

What am I doing wrong?

3

I cracked it. Since I was overriding a base layout file (not a parent theme file?), I needed to place my file inside

layout/override/base/default.xml

2
  • 100% right solution – Sameer Bhayani Oct 1 '19 at 14:21
  • This worked for me after many hours of frustration. Thank you. – Karl Oct 23 '19 at 15:02
0

Can you please clarify where you placed the file?

layout/override/base/default.xml

app/design/frontend/myvendor/mytheme/Magento_Checkout/layout/override/base/default.xml

app/design/frontend/myvendor/mytheme/layout/override/base/default.xml

Thank you

1
  • I no longer have the project in front of me, but feel free to try both locations. – M. Herold Mar 28 '18 at 21:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.