Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento2 如何覆盖magento 2 adminhtml模板文件?_Magento2 - Fatal编程技术网

Magento2 如何覆盖magento 2 adminhtml模板文件?

Magento2 如何覆盖magento 2 adminhtml模板文件?,magento2,Magento2,我想覆盖magento 2中的vendor/magento/module sales/view/adminhtml/templates/order/view/items/renderer/default.html文件。请提供帮助。您可以设置主题回退,因为它在前端工作 <config> <stores> <admin> <design> <theme>

我想覆盖magento 2中的
vendor/magento/module sales/view/adminhtml/templates/order/view/items/renderer/default.html
文件。请提供帮助。

您可以设置主题回退,因为它在前端工作

<config>
    <stores>
        <admin>
            <design>
                <theme>
                    <default>new_theme</default>
                </theme>
            </design>
        </admin>
    </stores>
</config>

新主题

然后,您可以在
app/design/adminhtml/default/new\u主题/

的正确路径下进行复制。使用此链接可以获得上述问题的答案