对Magento商店/商店视图/网站图层的深入解释?

Pek*_*ica 13 php magento

有人能指出我在编程层面上对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是如此强大和特色,一个人可以是设计集成专家,但不是在销售工作流管理,也不是在后台使用.专业知识可能非常细分.

玩得开心 !


joe*_*dev 9

我也在努力解决这些问题,即使在Magento自己的网站上,关于差异的信息也很少.经过大量的搜索,我发现这个网络研讨会很好地解释了网站,商店和商店视图背后的概念.我建议你观看视频,但这是我的要点:

  • 全局(安装),网站和商店视图是范围,商店不是范围
  • 商店允许统一的购物车和会话(例如,请查看gap.com oldnavy.com)
  • 网站默认不共享购物车或会话
  • 如果您想提供不同的送货方式,定价,付款网关,促销或基础货币,请创建不同的网站
  • 商店是商店视图的集合,根类别的商店点,同一根类别的商店点内的所有视图,但个别产品可能隐藏在视图中
  • 存储视图更改方式页面的呈现,而不是目录的结构
  • 网站,商店和商店视图都可以在同一个域或不同的域上配置


Ala*_*orm 7

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.


Lui*_*uis 7

全球| 网站| 商店| 商店视图

Magento的高级功能之一允许在一个安装中管理多个网站和商店,我们有一个惊人的系统来支持这个:GWS - 又名"全球,网站,商店".

全局:这指的是整个安装.

网站:网站是商店的"父母".一个网站由一个或多个商店组成.网站可以设置为共享客户数据,也可以不共享任何数据

商店(或商店视图组):商店是网站的"孩子".产品和类别在商店级别进行管理.为每个商店视图组配置根类别,允许同一网站下的多个商店具有完全不同的目录结构.

商店视图:商店需要一个或多个商店视图才能在前端进行浏览.每个商店视图的目录结构将始终相同,它只允许在前面进行多个数据呈现.90%的实施可能会使用商店视图来允许客户在两种或更多种语言之间切换.

参考:http://www.magentocommerce.com/knowledge-base/entry/overview-how-multiple-websites-stores-work

视频:创建多个在线店面,第1部分

视频:创建多个在线店面,第2部分