gpt4 book ai didi

Magento - 订单摘要单页结帐

转载 作者:行者123 更新时间:2023-12-04 05:05:44 25 4
gpt4 key购买 nike

我正在使用 Magento 的单页结帐功能的 Magento 站点上工作。

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

理想情况下,摘要需要包括:
产品名称、数量和价格
下面是小计、运输成本和总价。

最佳答案

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

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

关于Magento - 订单摘要单页结帐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15520394/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com