Magento的商店/商店视图/网站层的深入说明? [英] In-depth explanation of Magento's Store / Store View / Website layers?

查看:113
本文介绍了Magento的商店/商店视图/网站层的深入说明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以在编程级别上为我介绍Magento的Store Views/Websites系统的一个很好的技术说明吗?

Could anybody point me towards a good technical explanation of Magento's Store Views/Websites system on a programming level?

我正在考虑对系统进行定制,但是还不确定要使用这些级别中的哪个级别.

I am considering a customization of the system, but am not yet sure which one of these levels to use.

推荐答案

没有规范的资源.考虑这些观点的最佳方法是范围的概念. 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)

首先,我将对布局系统有一个很好的了解.基本上,布局被抽象为块"对象树.这些Blocks对象大多数都呈现特定的phtml模板文件.

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.

phtml模板文件被认为是商店的主题.您可以根据当前选择的商店,商店视图或网站来指向另一组模板.

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.

最后,Magento的 EAV模型系统甚至允许模型将值的范围限定在全局,网站或商店级别.

Finally, Magento's EAV model system allows even the models to have have values scoped at the global, website, or store level.

这篇关于Magento的商店/商店视图/网站层的深入说明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆