开发者

Filter store view based on Customer Group in Magento

开发者 https://www.devze.com 2023-01-16 21:44 出处:网络
I am developi开发者_StackOverflow中文版ng an e-commerce website where we need to have 2 store views. One for the professional customer and another for the retail customer.

I am developi开发者_StackOverflow中文版ng 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消