Magento - 订购摘要onepage checkout

时间:2013-03-20 10:01:45

标签: magento checkout summary

我正在使用Magento网站,该网站正在使用Magento的onepage checkout。

我需要在结帐流程的右侧显示订单摘要(而不是“结帐流程块”)

总结理想情况下需要包括; 产品名称,数量和价格 小计,交付成本和总价格。

1 个答案:

答案 0 :(得分:3)

我在checkout.xml中有这个

<checkout_onepage_index translate="label">
        <label>One Page Checkout</label>


        <reference name="head">
            <remove name="cookielawHead" />
        </reference>
        <reference name="footer">
            <remove name="cookielawFooter" />
        </reference>



        <!-- Mage_Checkout -->
        <!--
        <remove name="right"/>
        -->



        <remove name="left"/>

        <reference name="root">
            <action method="setTemplate"><template>page/2columns-checkout.phtml</template></action>
        </reference>

        <reference name="right">
            <action method="unsetChildren"></action> 

            <!--<block type="checkout/cart_sidebar" before="-" name="catalog.cart.sidebar" template="checkout/cart/sidebar.phtml"/> -->

            <block type="checkout/cart_sidebar" name="cart_sidebar" as="ajaxCart" template="ajaxcart/cart/sidebarcheckout.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>


            <block type="checkout/cart_totals" name="total_sidebar" as="total_sidebar" template="checkout/onepage/review/totals_right.phtml">
                <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>    

            <block type="cms/block" name="checkout_contact_right">
                   <action method="setBlockId"><block_id>checkout_contact_right</block_id></action>
            </block>            
            <block type="cms/block" name="checkout_shipping_right">
                   <action method="setBlockId"><block_id>checkout_shipping_right</block_id></action>
            </block>

        </reference>

         <reference name="content">
             <block type="checkout/onepage" name="checkout.onepage" template="checkout/onepage.phtml">
                 <block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="checkout/onepage/login.phtml">
                     <block type="page/html_wrapper" name="checkout.onepage.login.before" as="login_before" translate="label">
                         <label>Login/Registration Before</label>
                         <action method="setMayBeInvisible"><value>1</value></action>
                     </block>
                 </block>
                 <block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="checkout/onepage/billing.phtml"/>
                 <block type="checkout/onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="checkout/onepage/shipping.phtml"/>
                 <block type="checkout/onepage_shipping_method" name="checkout.onepage.shipping_method" as="shipping_method" template="checkout/onepage/shipping_method.phtml">
                     <block type="checkout/onepage_shipping_method_available" name="checkout.onepage.shipping_method.available" as="available" template="checkout/onepage/shipping_method/available.phtml"/>
                     <block type="checkout/onepage_shipping_method_additional" name="checkout.onepage.shipping_method.additional" as="additional" template="checkout/onepage/shipping_method/additional.phtml"/>
                 </block>
                 <block type="checkout/onepage_payment" name="checkout.onepage.payment" as="payment" template="checkout/onepage/payment.phtml">
                     <block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/methods.phtml">
                         <action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
                     </block>
                 </block>
                 <block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="checkout/onepage/review.phtml"/>
             </block>
         </reference>

    </checkout_onepage_index>

这将在结帐的右侧添加购物车和总计。