在magento-2中,如何使用值编辑订单摘要标签并添加更多标签?

mzaanser  于 2021-09-29  发布在  Java
关注(0)|答案(0)|浏览(248)

我想在magento2购物车页面的订单摘要框中添加一些标签。现在,我从默认的magento2行为中只得到了订单摘要中的小计和税,请参见屏幕截图:https://prnt.sc/1ggnt4j
我想添加和显示具有以下值的标签请参见屏幕截图以供参考:https://prnt.sc/1ggna7r
虚拟代码,例如。,

<div class="cart-summary" role="tablist" style="top: 0px;"><strong class="summary title">Summary</strong></div>
<div class="table-wrapper" data-bind="blockLoader: isLoading">
    <table class="data table totals">
        <tbody><tr><td>Price on Mrp</td><!---Want to show regular price -->
</tr><tr><td><?= _$regularprice; ?></td><!---regular price value -->
</tr><tr><td>Discount on MRP</td><!---Want to show discount amount-->
</tr><tr><td><?= _$discountamount; ?></td><!---discount price amount value-->
</tr><tr><td>Shipping</td><!---Want to show shipping custom label here -->
</tr><tr><td><strike>₹80</strike><?= _"FREE"; ?></td><!---shipping value -->
</tr><tr><td>Subtotal</td><!---Default show specail price -->
</tr><tr><td><?= _$specialprice; ?></td><!---Default special price value -->
</tr><tr><td>Tax</td><!---Default -->
</tr><tr><td><?= _$tax; ?></td><!---Default tax value -->
</tr>        </tbody>
    </table>
</div>

我们在magento2中是如何做到这一点的请帮助?
提前谢谢!

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题