Magento2 購物車添加頭部尾部

在Magento 2.1(.1)中,徽標被移到了/vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml它的正常位置checkout.header.wrapper,然後似乎在某處丟失了。

這是禍根:

<move element="logo" destination="checkout.header.wrapper"/>

並修改:

layout="1column"

要取回徽標,請添加/編輯文件:

[root]/app/design/frontend/[vendor]/[theme]/Magento_Checkout/layout/checkout_index_index.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  layout="1column"
  xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="logo" destination="header-wrapper"/>
    </body>
</page>

參考地址:https://magento.stackexchange.com/questions/125882/add-header-and-footer-in-checkout-page-magento2

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章