knockout.js - Magento 2 issue on header minicart -
im having problem on integrating header mini cart custom theme. below screenshots of issue. appreciated. in advance :)
below default.xml code.
<referencecontainer name="header.container"> <container name="header-wrapper" label="page header" as="header-wrapper" htmltag="div" htmlclass="top-header"> <!-- top links cart --> <container name="topcartoptions" label="top cart options" htmltag="div" htmlclass="top-cart-options text-right" before="-"> <block class="magento\cms\block\block" name="block-top-links"> <arguments> <argument name="block_id" xsi:type="string">block-top-links</argument> </arguments> </block> </container> <!-- top menu --> <container name="mainnavigation" label="main navigation" htmltag="div" htmlclass="main-navigation" after="topcartoptions"> <container name="main-navigation-container" label="main navigation" htmltag="div" htmlclass="container"> <container name="main-navigation-container-row" label="main navigation" htmltag="div" htmlclass="row"> <container name="main-nav-row-bootstrap-class" htmltag="div" htmlclass="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center"> <block class="magento\cms\block\block" name="block-main-nav"> <arguments> <argument name="block_id" xsi:type="string">block-main-nav</argument> </arguments> </block> </container> </container> </container> </container> <block class="magento\checkout\block\cart\sidebar" name="minicart" as="minicart" after="logo" template="cart/minicart.phtml"> <arguments> <argument name="jslayout" xsi:type="array"> <item name="types" xsi:type="array"/> <item name="components" xsi:type="array"> <item name="minicart_content" xsi:type="array"> <item name="component" xsi:type="string">magento_checkout/js/view/minicart</item> <item name="config" xsi:type="array"> <item name="template" xsi:type="string">magento_checkout/minicart/content</item> </item> <item name="children" xsi:type="array"> <item name="subtotal.container" xsi:type="array"> <item name="component" xsi:type="string">uicomponent</item> <item name="config" xsi:type="array"> <item name="displayarea" xsi:type="string">subtotalcontainer</item> </item> <item name="children" xsi:type="array"> <item name="subtotal" xsi:type="array"> <item name="component" xsi:type="string">uicomponent</item> <item name="config" xsi:type="array"> <item name="template" xsi:type="string">magento_checkout/minicart/subtotal</item> </item> </item> </item> </item> <item name="extra_info" xsi:type="array"> <item name="component" xsi:type="string">uicomponent</item> <item name="config" xsi:type="array"> <item name="displayarea" xsi:type="string">extrainfo</item> </item> </item> <item name="promotion" xsi:type="array"> <item name="component" xsi:type="string">uicomponent</item> <item name="config" xsi:type="array"> <item name="displayarea" xsi:type="string">promotion</item> </item> </item> </item> </item> </item> </argument> </arguments> <container name="minicart.addons" label="mini-cart promotion block"/> </block> </container> </referencecontainer>
Comments
Post a Comment