Checkout Magento 2签出页面订单摘要附加模块签出/索引/索引

Checkout Magento 2签出页面订单摘要附加模块签出/索引/索引,checkout,magento2,Checkout,Magento2,我需要在两个结帐页面中显示订单摘要,即在默认Magento 2设置中将产品添加到购物车后,您将转到以下URL: localhost/magento216/checkout/ localhost/magento216/checkout/#付款 您可以检查第一个URL中的订单摘要是否不包含订单总计块。请查看屏幕截图以获取帮助 我想在localhost/magento216/checkout/中添加订单总数,类似地,在localhost/magento216/checkout/#payment中工作

我需要在两个结帐页面中显示订单摘要,即在默认Magento 2设置中将产品添加到购物车后,您将转到以下URL:

  • localhost/magento216/checkout/
  • localhost/magento216/checkout/#付款
  • 您可以检查第一个URL中的订单摘要是否不包含订单总计块。请查看屏幕截图以获取帮助

    我想在localhost/magento216/checkout/中添加订单总数,类似地,在localhost/magento216/checkout/#payment中工作

    提前感谢

    结帐

    结帐#付款

    终于实现了

    转到文件路径- \供应商\magento\theme前端luma\magento\u Checkout\layout\Checkout\u index\u index.xml

    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="checkout.root">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="checkout" xsi:type="array">
                            <item name="children" xsi:type="array">
                                <item name="steps" xsi:type="array">
                                    <item name="children" xsi:type="array">
                                        <item name="shipping-step" xsi:type="array">
                                            <item name="children" xsi:type="array">
                                                <item name="shippingAddress" xsi:type="array">
                                                    <item name="children" xsi:type="array">
                                                        <item name="before-shipping-method-form" xsi:type="array">
                                                            <item name="children" xsi:type="array">
                                                                <item name="shipping_policy" xsi:type="array">
                                                                    <item name="component" xsi:type="string">Magento_Shipping/js/view/checkout/shipping/shipping-policy</item>
                                                                    <item name="component" xsi:type="string">Magento_Checkout/js/view/cart/shipping-rates</item>
                                                                    <item name="component" xsi:type="string">Magento_Checkout/js/view/cart/shipping-estimation</item>
                                                                </item>
                                                            </item>
                                                        </item>
                                                    </item>
                                                </item>
                                            </item>
                                        </item>
                                    </item>
                                </item>
    
                                <item name="sidebar" xsi:type="array">
                                    <item name="children" xsi:type="array">
                                        <item name="summary" xsi:type="array">
                                            <item name="children" xsi:type="array">
                                                <item name="block-totals" xsi:type="array">
                                                    <item name="component" xsi:type="string">Magento_Checkout/js/view/cart/totals</item>
                                                    <item name="displayArea" xsi:type="string">totals</item>
                                                    <item name="config" xsi:type="array">
                                                        <item name="template" xsi:type="string">Magento_Checkout/cart/totals</item>
                                                    </item>
                                                    <item name="children" xsi:type="array">
                                                        <!-- sort order for this totals is configured on admin panel-->
                                                        <!-- Stores->Configuration->SALES->Sales->General->Checkout Totals Sort Order -->
                                                        <item name="subtotal" xsi:type="array">
                                                            <item name="component"  xsi:type="string">Magento_Checkout/js/view/summary/subtotal</item>
                                                            <item name="config" xsi:type="array">
                                                                <item name="title" xsi:type="string" translate="true">Subtotal</item>
                                                                <item name="template" xsi:type="string">Magento_Checkout/cart/totals/subtotal</item>
                                                            </item>
                                                        </item>
                                                        <item name="shipping" xsi:type="array">
                                                            <item name="component"  xsi:type="string">Magento_Checkout/js/view/cart/totals/shipping</item>
                                                            <item name="config" xsi:type="array">
                                                                <item name="title" xsi:type="string" translate="true">Shipping</item>
                                                                <item name="template" xsi:type="string">Magento_Checkout/cart/totals/shipping</item>
                                                            </item>
                                                        </item>
                                                        <item name="grand-total" xsi:type="array">
                                                            <item name="component"  xsi:type="string">Magento_Checkout/js/view/summary/grand-total</item>
                                                            <item name="config" xsi:type="array">
                                                                <item name="title" xsi:type="string" translate="true">Order Total</item>
                                                                <item name="template" xsi:type="string">Magento_Checkout/cart/totals/grand-total</item>
                                                            </item>
                                                        </item>
                                                    </item>
                                                </item>
                                            </item>
                                        </item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </item>
                </argument>
            </arguments>
        </referenceBlock>
    </body>
    
    
    Magento_配送/js/view/checkout/Shipping/Shipping policy
    Magento_结帐/js/查看/购物车/运费
    Magento_Checkout/js/view/cart/shipping assessment
    Magento_Checkout/js/view/cart/totals
    总数
    Magento_结帐/购物车/总计
    Magento_Checkout/js/view/summary/subtotal
    小计
    Magento_结帐/购物车/总计/小计
    Magento_Checkout/js/view/cart/totals/shipping
    航运
    Magento_结帐/购物车/总计/发货
    Magento_Checkout/js/view/summary/grand total
    订单总数
    Magento_结帐/购物车/总计/总计
    


    快乐编码!!!:)

    在我的自定义主题中,我已将此内容添加到文件“Magento\u Checkout\layout\Checkout\u index\u index.xml”中,但它不起作用。我正在使用自定义主题并编辑块,它开始显示总数。感谢you@Sarfaraj你能用Athul vijayan做的改变核对一下吗?等待你的消息endThanks@TanmayMishra谢谢你的回复,我完成了,现在它可以正常工作了。我是用另一种方法做的有人能解释一下吗?