在 magento 小部件中包含新模板
Include new template in magento widget
我已经为 magento 1.9.2 安装了 VES MOTOZZ 主题。我正在使用它的页面构建器来构建页面。但是为了添加搜索表单等新功能,我在 /app/design/frontend/base/default/template/ves/search/search.phtml
中创建了新的 phtml 文件
我想通过将 search.phtml 作为模板插入到现有的 magento 小部件之一中来将其包含在我的主页中。我试图通过 CMS -> Widgets -> Search(I've created this widget) -> Widget Options -> Template
插入它
但它没有显示我的小部件的内容。我对 magento 完全陌生。有什么建议或帮助吗?
谢谢。
您需要在主页中加入以下代码。我认为您的主页将是 CMS >> 页面 >> your_home_page
{{block type="core/template" template="ves/search/search.phtml"}}
我已经为 magento 1.9.2 安装了 VES MOTOZZ 主题。我正在使用它的页面构建器来构建页面。但是为了添加搜索表单等新功能,我在 /app/design/frontend/base/default/template/ves/search/search.phtml
中创建了新的 phtml 文件
我想通过将 search.phtml 作为模板插入到现有的 magento 小部件之一中来将其包含在我的主页中。我试图通过 CMS -> Widgets -> Search(I've created this widget) -> Widget Options -> Template
但它没有显示我的小部件的内容。我对 magento 完全陌生。有什么建议或帮助吗?
谢谢。
您需要在主页中加入以下代码。我认为您的主页将是 CMS >> 页面 >> your_home_page
{{block type="core/template" template="ves/search/search.phtml"}}