单个域上的多个 magento 商店 [英] Multiple magento stores on single domain

查看:37
本文介绍了单个域上的多个 magento 商店的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个网站,其中有一家零售店和一家批发商店.每个产品都不同,因此不仅仅是针对用户类型调整定价的问题.我需要保护批发部分的密码,以便它只对登录用户可用.我正在使用一个模块来实现这一点,但它仅适用于商店级别,因此需要两个商店而不仅仅是单独的类别.

I'm setting up a website that has a retail store and a wholesalers store. The products in each are different so its not just a matter of adjusting pricing for user types. I need to have the wholesale section password protected so its only available to logged in users. I'm using a module to achieve this but it only works at a store level hence the need for two stores rather than just separate categories.

我的目录结构如下:

www.mysite.com - 当前 CMS 页面和博客等的 wordpress 安装www.mysite.com/store - magento 安装

www.mysite.com - wordpress install for current CMS pages and blog etc www.mysite.com/store - magento install

我想要 www.mysite.com/store/retail &www.mysite.com/store/wholesale 作为两家商店.

I want www.mysite.com/store/retail & www.mysite.com/store/wholesale as the two shops.

所以我的问题 - 首先,这听起来像正确的实现这一目标的合理方法.

So my question - firstly does this sound like the right a reasonable approach to achieve this.

其次 - 仍然试图了解网站/商店/视图系统,但我是否正确,因为我需要一个网站和两个商店,每个商店都有一个视图.有没有人知道进行此类设置的好教程,我找到了一些,但大多数用于将不同的域设置为相同的安装.

Secondly - still trying to get my head around the website/store/view system but am I correct in that I need the one website, and two stores with a view for each. Does anyone know of a good tutorial for doing this sort of setup, I've found a few but mostly they're for setting up different domains to the same install.

感谢您的建议.

推荐答案

最简单(也是最常用)的方法是为这两家商店提供商店代码零售"和批发".这是在管理菜单系统>管理商店中完成的.

The simplest way (and most used) is to give the two stores the store codes "retail" and "wholesale". This is done in the admin menu System > Manage Stores.

然后,在 System > Configuration > Web > URL Options 中,将 Add Store Code to URLs 更改为Yes".

Then, in System > Configuration > Web > URL Options, change Add Store Code to URLs to "Yes".

由于这两家商店有不同的产品,并且可能也有不同的客户,因此将它们放在两个不同的网站上更有意义.即使它们在系统 > 管理商店 中被称为网站",它们也不必具有不同的域.它仍然可以正常工作.

Since the two stores have separate products, and probably separate customers too then it makes more sense to have them on two separate websites too. Even though they are called "websites" in System > Manage Stores they do not have to have different domains. It will still work perfectly well.

这篇关于单个域上的多个 magento 商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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