templates - 如何在 PrestaShop 1.7.6 的子主题中添加新块?
问题描述
我可以用代码扩展父模板文件吗
{extends file='parent:checkout/_partials/steps/checkout-step.tpl'}
添加一个新的{block}
?如果是,那怎么办?
还是我只需要在我的子主题中覆盖父模板?
编辑:
我想在父模板中存在的任何块之外添加新块。
解决方案
推荐阅读
- python - 如何使用 strtotime 将时间戳转换为 unixepoch 时间戳
- loading - LightSwitch 应用程序负载问题 -
- reactjs - 如何在索引结果为零时停止索引显示在自动完成搜索栏中,使用 Algolia 进行多索引搜索?
- sockets - 套接字 VS 消息代理
- typescript - 从对象类型创建常量数组类型
- magento2 - Magento2 结帐返回购物车而不是下订单
- c# - 从用户控件访问父窗体
- linux - 为一个简单的 linux 驱动程序获取“以抢占不平衡返回”错误
- java - 按当前时间在该区域中查找 ZoneId
- javascript - 调用 element.dispatchEvent(new MouseEvent('')) 时会触发哪个 chromium c++ 函数?