0

Magento のカスタム テーマを作成していますが、問題が発生しました...

ショッピング中にカートが常に表示されるようにしたかったので、次の方法で作成しましたLocal.xml

これが私が使用したコードです:

<reference name="left">
    <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
        <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
        <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
        <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
        <block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
            <label>Shopping Cart Sidebar Extra Actions</label>
        </block>
    </block>
</reference>

しかし、問題は、アカウントにログインするとブロックが重複し、それを介してブロックを削除しようとするとLocal.xml両方が削除されることです...

デフォルトのブロックを削除して、カスタム ブロックを常に有効にしておくにはどうすればよいですか?

私が何を意味するかを見るために画像を見てください: ここに画像の説明を入力

4

1 に答える 1