根据 Magento 中的客户组过滤商店视图
我正在开发一个电子商务网站,我们需要有 2 个商店视图。一个用于专业客户,另一个用于零售客户。
我们需要为批发/零售客户群提供相同的库存,但不同的产品描述、不同的属性以及外观和感觉。
I am developing an e-commerce website where we need to have 2 store views. One for the professional customer and another for the retail customer.
We need to have the same inventory but different product description, different attributes, and look and feel for wholesale/retail customer groups.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Magento 的所有内容及其目录管理和显示工具以及主题都是在设计时考虑到这种情况的。通常,您将商店视图及其关联的目录、定价和库存附加到唯一的 URL(例如,wholesale.store.com 和 Retail.store.com)。以下是有关如何在 Magento 中执行此操作的博客文章 v1.3 和 v1.4,但是您可以采取几种不同的方法。
一种选择是编写一个自定义模块,将观察者绑定到
customer_login
事件,然后设置重定向到您与其客户组关联的商店。有一篇不错的博客文章 如何在 Magento 中使用观察者,以及已知事件的备忘单。您可以搜索 Stack Overflow 以获取有关开始开发自定义模块的指导。这应该朝着正确的方向发展。
All of Magento, with its catalog management and display tools, along with themes, is designed with this scenario in mind. Generally you attach a store view with its associated catalog, pricing and inventory to a unique URL (e.g. wholesale.store.com and retail.store.com). Here are blog posts on how to do this in Magento v1.3 and v1.4, however you could take a couple of different approaches.
One option for this is to write a custom module that binds an Observer to the
customer_login
event, and then sets a redirect to the Store that you have associated with their Customer Group.There's nice blog post on how to use Observers in Magento, and a cheat sheet of known Events. You can search Stack Overflow for pointers on starting the development of a custom module. That should get headed in the right direction.