php 迷你推车迷你

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 迷你推车迷你相关的知识,希望对你有一定的参考价值。


\!h ----- mini cart moving in header

http://blog.hqdipace.com/moving-mini-cart-anywhere-in-magento/

<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>

2) Open up app\design\frontend\default\default\layout\page.xml (assuming you are using the default design or didn’t create a new page.xml file in your own templates)
Find the code :
    
<block type="page/html_header" name="header" as="header">
    
<block type="page/html_header" name="header" as="header"> //near line 58

3) Now, go to app\design\frontend\default\default\template\page\html\header.phtml and add the code:
    
//place this where ever you want the cart to show up.
<?php echo $this->getChildHtml('cart_sidebar'); ?>

以上是关于php 迷你推车迷你的主要内容,如果未能解决你的问题,请参考以下文章

php 迷你管理员吧

PHP 迷你纺织类

php WooCommerce迷你购物车项目计数和短代码

迷你纺织品类

powerbi迷你图无法使用

《CAD迷你看图》测距方法教程