Magento布局参考不在左侧
所以,请帮我一个忙。我只是想把默认的购物车移到左边Magento布局参考不在左侧,magento,Magento,所以,请帮我一个忙。我只是想把默认的购物车移到左边 <reference name="left"> <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-"> <action method="addItemRender"><type>simple</type>&
<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>
simplecheckout/cart\u item\u rendercheckout/cart/sidebar/default.phtml
groupedcheckout/cart\u项目\u渲染器\u groupedcheckout/cart/sidebar/default.phtml
configurablecheckout/cart\u项目\u渲染器\u configurablecheckout/cart/sidebar/default.phtml
购物车侧边栏额外操作
我将参考块设置为“左”,但购物车不在左侧,但它已从右侧消失。页面是否使用2列左侧布局?如果不是,您将永远不会在左侧边栏上看到任何内容。您可以通过布局更新来解决此问题:
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
第页/2列-left.phtml
您将此代码放在哪里?我将放入布局文件checkout.xml请将
句柄的全部内容添加到您的帖子中。页面中存在左列,因为常用标记列位于左侧,其引用名称设置为左。此外,当我尝试将常用标记引用设置为右时,它也不可见