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

查看:82
本文介绍了在单个域上有多个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.

所以我的问题-首先听起来是否像 the right 这样一种合理的方法来实现这一目标.

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.

然后,在系统">配置">"Web">"URL选项" 中,将"将商店代码添加到URL" 更改为是".

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天全站免登陆