简体   繁体   English

更改产品视图magento

[英]Change product view magento

We have a magento store with the magestore auction module installed. 我们有一家安装了magestore拍卖模块的magento商店。 When we click a category it still loads the theme/catalog/product/list.phtml instead of theme/auction/list.phtml 当我们单击一个类别时,它仍会加载theme / catalog / product / list.phtml而不是theme / auction / list.phtml

I have tried copy pasting the code from the auction template to another , this didn't suffice since it still got it's _productCollection from the Local/Mage/Catalog/Block/List.php instead of Local/MageStore/Auction/Block/List.php ... which doesn't have the right filters etc. 我尝试将代码从拍卖模板复制粘贴到另一个模板,这还不够,因为它仍然是从Local / Mage / Catalog / Block / List.php而不是Local / MageStore / Auction / Block / List获得的_productCollection。 PHP的...没有正确的过滤器等

Any idea how i should solve this ? 知道我应该如何解决吗?

How are your theme directories structured? 主题目录的结构如何? In case it looks like app/design/frontend//default or so and your Auction extensions design files are not in base, you may need to copy some of its contents to your template directory. 如果它看起来像app / design / frontend // default或您的Auction Extensions设计文件不在基本目录中,则可能需要将其某些内容复制到模板目录中。

Try first copying the following directories to your theme folder: 尝试首先将以下目录复制到主题文件夹:

app/design/frontend/default/default/layout/auction-extension.xml 应用/设计/前端/默认/默认/布局/auction-extension.xml

This file takes care of showing theme/auction/list.phtml instead of theme/catalog/product/list.phtml 该文件负责显示theme / auction / list.phtml而不是theme / catalog / product / list.phtml

app/design/frontend/default/default/template/auction-extension 应用/设计/前端/默认/默认/模板/拍卖扩展

The reason why it just displays the default list.phtml instead of your auction's list.phtml 它只显示默认list.phtml而不是拍卖的list.phtml的原因

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM