简体   繁体   English

无法使主题在目录视图上工作

[英]Cannot get theme to work on catalog view

I have theme i am trying to get work on a remote server that works fine on my local copy. 我有一个主题,我正在尝试在可以在本地副本上正常运行的远程服务器上工作。 This is for magento 1.4.1.1. 这是针对magento 1.4.1.1。 On the working local copy I have 'theme144' within the 'base' package, there are 3 store views; 在工作的本地副本中,“基本”包中有“ theme144”,有3个商店视图; . In the admin there are 3 design change(System>Design), one for each store view. 在管理员中,有3个设计更改(系统>设计),每个商店视图一个。 These are the only changes i see in the admin pertaining to design. 这些是我在管理员中看到的与设计有关的唯一更改。 When testing the site on the remote server, the correct templates are being used for everything except the catalog view. 在远程服务器上测试站点时,除目录视图外,所有模板均使用正确的模板。 Magento reverts to the 'default' theme inside the 'base' package. Magento恢复为“基本”包中的“默认”主题。 All the images, and it seems like the templates, are all using the other theme. 所有图像,看起来像是模板,都使用其他主题。

I've tried specifying the theme explicitly in System>Configuration>Design for the Skin, Layout, and Templates, even though on the working local copy these are not set. 我尝试在“系统”>“配置”>“设计”中为外观,布局和模板明确指定主题,即使未在工作的本地副本上设置这些主题。 This got magento to find the images and style sheets, but it was still using 'default' for the templates. 这让magento可以找到图像和样式表,但是模板仍使用“默认”。

At this point i don't where else to look to give me hints as to why this is happening. 在这一点上,我没有其他地方可以给我提示为什么发生这种情况。 I eliminated all the differences between the local and remote site, both in the admin and the template file structure. 我消除了本地站点和远程站点之间在管理和模板文件结构方面的所有差异。

edit : This issue also extends to the product detail view 编辑 :此问题还扩展到产品详细信息视图

在远程服务器上,检查每个类别的“设计”选项卡以查看是否在其中设置了主题,该主题将覆盖其他设置。

I guess this is a reported bug in Magento. 我猜这是Magento中的一个已报告错误。 Apparently if you apply the design change to a store that is not the 'All store views'(like the local machine view), then the design changes wont propagate properly. 显然,如果将设计更改应用于不是“所有商店视图”(例如本地计算机视图)的商店,则设计更改将无法正确传播。 If this occurs, the you can get Magento apply the updated design by selecting the template in the 'Custom Design' tab on the root category(make sure to apply changes to child elements as well). 如果发生这种情况,您可以通过在根类别的“自定义设计”选项卡中选择模板来使Magento应用更新的设计(确保也将更改应用于子元素)。 I reverted these changes and the theme finally stuck. 我撤消了这些更改,主题终于停滞了。

http://www.magentocommerce.com/boards/viewthread/35761/ http://www.magentocommerce.com/boards/viewthread/35761/

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

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