This content originally appeared on DEV Community and was authored by Paboda Hettiarachchi
Vendor/Module/view/frontend/layout/sales_order_item_price.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="item_unit_price">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_Module::item/price/unit.phtml</argument>
</action>
</referenceBlock>
</body>
</page>
Vendor/Module/view/frontend/templates/item/price/unit.phtml
<?= "TEST" ?>
This content originally appeared on DEV Community and was authored by Paboda Hettiarachchi

Paboda Hettiarachchi | Sciencx (2025-02-12T03:04:45+00:00) Update unitprice in order view via a custom module. Retrieved from https://www.scien.cx/2025/02/12/update-unitprice-in-order-view-via-a-custom-module-2/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.