有人能指出我在编程层面上对Magento的Store Views/Websites系统进行了很好的技术解释吗?
我正在考虑对系统进行自定义,但尚不确定要使用哪个级别.
Her*_*tin 11
首先要阅读的是Magento Designer的指南:http: //www.magentocommerce.com/design_guide
是的,"设计师"而不是"开发者":)但这是一个很好的背景,以明确事情的表达方式.而且,说实话......在Magento中,"Designer"与"Developper"非常相似,有时候也是"系统工程师".如果不是开发者(imo),一个人不可能是一个好的Magento设计师.
现在,Magento的SO社区仍然很害羞,因为我猜想还没有Magento的专家.由于不够谦虚,我可能会认为,作为一个全新的SOer,我发现我可以在一些领域提供帮助.所以随便问一下,我确定当有人知道,有人回答.最后,请记住,Magento是如此强大和特色,一个人可以是设计集成专家,但不是在销售工作流管理,也不是在后台使用.专业知识可能非常细分.
玩得开心 !
我也在努力解决这些问题,即使在Magento自己的网站上,关于差异的信息也很少.经过大量的搜索,我发现这个网络研讨会很好地解释了网站,商店和商店视图背后的概念.我建议你观看视频,但这是我的要点:
There's no canonical resource on this. The best way to think about these views are with the concept of scope. Certain data in Magento is returned differently depending on which level (website, store, etc. you're on)
I'd start by getting a good understanding of the Layout system. Basically, layouts are abstracted out into a tree of "Block" objects. Most of these Blocks objects render a specific phtml template file.
The phtml template files are considered the store's theme. You can point to a different group of templates depending on which store, store view or website is currently selected.
Step Two would be to get familiar with the configuration system. Magento takes certain actions based on the values set here, and the values can be set on a global, website, or store level. The obvious example here is locale.
Finally, Magento's EAV model system allows even the models to have have values scoped at the global, website, or store level.
全球| 网站| 商店| 商店视图
Magento的高级功能之一允许在一个安装中管理多个网站和商店,我们有一个惊人的系统来支持这个:GWS - 又名"全球,网站,商店".
全局:这指的是整个安装.
网站:网站是商店的"父母".一个网站由一个或多个商店组成.网站可以设置为共享客户数据,也可以不共享任何数据
商店(或商店视图组):商店是网站的"孩子".产品和类别在商店级别进行管理.为每个商店视图组配置根类别,允许同一网站下的多个商店具有完全不同的目录结构.
商店视图:商店需要一个或多个商店视图才能在前端进行浏览.每个商店视图的目录结构将始终相同,它只允许在前面进行多个数据呈现.90%的实施可能会使用商店视图来允许客户在两种或更多种语言之间切换.
参考:http://www.magentocommerce.com/knowledge-base/entry/overview-how-multiple-websites-stores-work