首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在magento 2中覆盖主题中的Module_ConfigurableProduct/final_ theme e.phtml文件

在magento 2中覆盖主题中的Module_ConfigurableProduct/final_ theme e.phtml文件
EN

Stack Overflow用户
提问于 2018-10-24 14:03:25
回答 1查看 1.2K关注 0票数 0

在Magento 2中,我必须将final_price.phtml文件重写到主题中。

代码语言:javascript
运行
复制
vendor/magento/module-configurable-product/view/base/templates/product/price/final_price.phtml

我尝试用相同的文件夹结构在主题中重写如下

代码语言:javascript
运行
复制
/app/design/frontend/Company/Theme/Magento_ConfigurableProduct/templates/Product/Price/final_price.phtml 

我也试过了模块。但我得到了这个错误

请帮忙谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-10-26 05:33:28

我想你犯了一些大写小错误

您必须更新文件路径。

/app/design/frontend/Company/Theme/Magento_ConfigurableProduct/templates/Product/Price/final_price.phtml

/app/design/frontend/Company/Theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52971015

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档