我刚刚安装了一个扩展,用于在 magento 的列表页面中显示垂直导航菜单。分机是 https://www.magentocommerce.com/magento-connect/vertical-navigation-with-css-classes.html .它在 template\vertnav\left.phtml 中有 left.phtml 文件。我希望垂直导航显示在 template\catalog\layer\view.phtml 中并更改其样式。所以我将 left.phtml 的内容复制到 view.phtml 但错误显示如下:
这是我的第一个扩展。请帮忙。
最佳答案
您不能在每个文件中调用每个方法。 查找扩展 xml 文件。 打开它,然后在 catalog_category_default 和 catalog_category_layered 下使用扩展 xml 标记中的所有 block 和 css。 现在你可以在 view.phtml 中调用这些函数
关于css - 如何在 Magento 中编辑扩展的样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38048651/