Magento2自定义分层导航


Answers:


0

我知道您可以通过添加一个静态块(带有到您要链接的所有项目的链接)并在类别布局中调用它并使用以下代码更新xml来手动添加一个。PS“ Block_Code”是您的静态块代码。

<referenceContainer name="sidebar.additional">
   <block class="Magento\Cms\Block\Block" name="male_model">
       <arguments>
            <argument name="block_id" xsi:type="string">Block_Code</argument>
       </arguments>
   </block>
</referenceContainer>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.