小编dar*_*oor的帖子

如何将应用优惠券移至 Magento 2 结账页面的侧栏?

我想更改侧边栏中应用优惠券的位置而不是选项卡部分。我已经在结账页面添加了一个自定义选项卡,该选项卡已基本完成。现在我只需要侧边栏中的“应用折扣代码”部分。

在此输入图像描述

我当前的 checkout_index_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>
    <!-- added custom step -->
    <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">
                                        <!-- The new step you add -->
                                        <item name="my-new-step" xsi:type="array">
                                            <item name="component" xsi:type="string">Magento_Checkout/js/view/my-step-view</item>
                                                <!--To display step content before shipping step "sortOrder" value should be < 1-->
                                                <!--To display step content between shipping step and payment step  1 < "sortOrder" < 2 -->
                                                <!--To display step …
Run Code Online (Sandbox Code Playgroud)

checkout magento2

1
推荐指数
1
解决办法
5038
查看次数

标签 统计

checkout ×1

magento2 ×1