如何在客户仪表板前端重命名订单发货名称?


Answers:


10

您需要在模块中覆盖此文件

路径: vendor\magento\module-sales\view\frontend\layout\sales_order_info_links.xml

以下是客户帐户仪表板中的发票和订单发货链接的代码,如果您想交换只是交换块,或者如果您想重命名订单发货标签而只是重命名标签订单发货块

<block class="Magento\Sales\Block\Order\Link" name="sales.order.info.links.invoice">
                <arguments>
                    <argument name="key" xsi:type="string">Invoices</argument>
                    <argument name="path" xsi:type="string">sales/order/invoice</argument>
                    <argument name="label" xsi:type="string" translate="true">Invoices</argument>
                </arguments>
</block>
<block class="Magento\Sales\Block\Order\Link" name="sales.order.info.links.shipment">
                <arguments>
                    <argument name="key" xsi:type="string">Shipments</argument>
                    <argument name="path" xsi:type="string">sales/order/shipment</argument>
                    <argument name="label" xsi:type="string" translate="true">Order Shipments</argument>
                </arguments>
 </block>

我希望这个能帮上忙

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.