根据Magento中的客户组过滤商店视图 [英] Filter store view based on Customer Group in Magento

查看:80
本文介绍了根据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.

推荐答案

Magento的所有功能及其目录管理和显示工具以及主题都是在考虑此情况的情况下设计的.通常,您将商店视图及其相关的目录,价格和库存附加到唯一的网址(例如,wholesale.store.com和retail.store.com).这是有关如何在Magento中执行此操作的博客文章 v1.3 v1.4 ,但是您可以采用几种不同的方法.

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.

为此,一个选项是编写一个自定义模块,该模块将Observer绑定到customer_login事件,然后将重定向设置为与您的客户组关联的商店.

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.

有一个很好的博客文章关于如何在Magento中使用观察者,以及已知的事件.您可以在Stack Overflow中搜索有关开始开发自定义模块的指针.那应该朝着正确的方向前进.

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.

这篇关于根据Magento中的客户组过滤商店视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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