我试图覆盖:
/vendor/magento/module-checkout/view/frontend/web/template/shipping.html
我写了一份副本:
app/design/frontend/Vendor/Theme/Magento_Checkout/template/shipping.html
如http:/中所述 /devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/theme-inherit.html
The order is defined in the /view/frontend/templates/cart/minicart.phtml module template. The Blank theme does not override this template. OrangeCo decided they want the product list to be displayed before the Go to Checkout button. To do this, they need to add an overriding template for the corresponding module in the Orange theme folder: app/design/frontend/OrangeCo/orange/Magento_Checkout/templates/cart/minicart.phtml
我刷新了缓存和静态文件,但它没有覆盖.任何建议都将不胜感激。
最新回答
- 2019-12-51 #
正确的覆盖路径如下:
删除以下内容:
我假设你在这里使用linx。 去控制台并导航到
从bin文件夹中(magento_dir)/bin/
按以下顺序发出命令:
部署静态内容需要一些时间.所以在刷新缓存之前要等待。
在网络浏览器中清理缓存,然后尝试查看要覆盖的页面。
希望这很清楚,适合你。