首页>Magento>source

我试图覆盖:

/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-5
    1 #

    正确的覆盖路径如下:

    (magento_dir)/app/design/frontend/Vendor/Theme/Magento_Checkout/web/template/shipping.html
    

    删除以下内容:

    /var/viewprocessed/
    /pub/static/frontend/
    

    我假设你在这里使用linx。 去控制台并导航到 (magento_dir)/bin/

    从bin文件夹中

    按以下顺序发出命令:

    ./magento setup:static-content:deploy
    ./magento cache:flush
    

    部署静态内容需要一些时间.所以在刷新缓存之前要等待。

    在网络浏览器中清理缓存,然后尝试查看要覆盖的页面。

    希望这很清楚,适合你。

  • magento 1.9:如何以特定格式显示子类别?
  • magento2:在购物车和迷你购物车中添加数量增量按钮