Skip to content

Overriding Minicart.phtml template breaks minicart dropdown content (shows blank/empty) #9773

@RedAtRareCandy

Description

@RedAtRareCandy

Preconditions

  1. Magento 2.1.6 via latest Magento DevBox Beta

Steps to reproduce

  1. Install Magento DevBox Beta
  2. Add minicart.phtml template to your theme in Magento_Checkout/templates/cart/minicart.html (this can be the original code from app/code/Magento/Checkout/view/frontend/templates/cart/minicart.phtml and it should still break the minicart dropdown).
  3. Flush cache and also run bin/magento setup:upgrade
  4. Reload homepage and click the cart icon.

Expected result

  1. The cart should display "Your cart is empty" message. Or the items in your cart.

Actual result

  1. Dropdown is empty. Illustrated in the following:
    https://cloud.githubusercontent.com/assets/24561107/22732111/fd10552c-ee12-11e6-8cbd-c0deb8592aa5.png

Noticed that the minicart.phtml JavaScript throws errors as if it's not able to reference the right files...

Metadata

Metadata

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releasenon-issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions