一个 Magento、一个目录、多个域、多语言、共享购物车、结账时 SSL

发布于 2025-01-08 15:41:31 字数 904 浏览 0 评论 0原文

这就是我试图在我们的专用服务器(直接管理)上实现的目标:

1 Magento (1.6.2.0)

1 目录

3 域

  • domain.nl(是主域并具有magento 文件)
  • 域。 de(是域别名,不是虚拟主机,根本没有文件)
  • domain.se(是域别名,不是虚拟主机,根本没有文件)

3 种语言

  • 荷兰语
  • 德语
  • 瑞典语

共享购物车

Chekout 上的 SSL

假设一位荷兰访问者在 Google 中输入“产品 X”,并在我们的德国网站 (domain.de) 上找到了他的产品。他将其添加到购物车并喜欢用荷兰语继续。因此,他点击了荷兰国旗,应该能够在 domain.nl 上结账。

我尝试了该语言的一些功能。 一种方式我有 3 个网站,每个域 1 个,所有网站都有 3 个商店,每种语言一个。总共有 9 家商店和浏览量。这是我能让旗帜显示出来的唯一方法。但大多数时候,国旗图像不会显示,因为视图的代码必须是 2 个字母的国家/地区代码,只能使用一次。当我更改语言(即域)时,购物车未共享。

另一种方式我有 1 个网站,其中有 3 个商店,每个语言/域都有一个商店和视图。但在这种情况下,语言选择器(标志)根本不显示。

我一直在阅读有关此的内容。但是我发现的所有(大部分是旧的)主题或文章都是关于单个主题的,并且彼此之间如此不同,以至于我无法将它们合并为一个。

感谢您的帮助!

干杯, 罗伯特

This is what I’m trying to achieve on our dedicated server (Direct Admin):

1 Magento (1.6.2.0)

1 catalog

3 domains

  • domain.nl (is main and has the magento files)
  • domain.de (is domain alias, not Virtual Host, has no files at all)
  • domain.se (is domain alias, not Virtual Host, has no files at all)

3 languages

  • Dutch
  • German
  • Swedish

Shared Shopping Cart

SSL on Chekout

Let’s say a Dutch visitor is typing “product X” in Google and finds his product on our German site (domain.de). He adds it to the cart and likes to continue in Dutch. So he clicks the Dutch flag and should be able to checkout on domain.nl.

I tried a couple of things with the language. One way I had 3 websites, 1 for each domain and all with 3 stores, one for each language. So 9 stores and views in total. This was the only way I could get the flags showing. But most of the time the flag image was not showing because the code of the view had to be the 2 letter country code, which can only used once. And when I changed language (thus domain), the cart was not shared.

The other way I had 1 Website with 3 stores, one store and view for each language/domain. But in this case the language selector (flags) where not showing at all.

I’ve been reading allot about this. But all the (mostly old) topics or article I found are about a single subject and so different from each other that I cannot combine them into one.

Thanks for any help!!

Cheers,
Robert

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

染火枫林 2025-01-15 15:41:31

我已经尝试过这个概念了,我相信这就是你会做的。在 Magento 管理 -> 系统 -> 管理商店下,您可以设置以下内容。

  • 一个网站(很可能是主网站)
  • 一个商店
  • 三个商店视图(每种语言一个)

然后您将进入“系统”->“配置”。在“当前配置范围”中选择每种特定语言,然后将常规->Web->不安全->基本 URL 和常规->Web->安全->基本 URL 更改为您要使用的 URL每个商店。即您的德语配置不应使用网站设置,而应设置为domain.de。

对于每个虚拟主机,将它们配置为全部指向您的单个 Magento 安装。当他们带着特定的 URL 进来时,Magento 应该将他们路由到正确的语言版本,如果他们选择一个标志,它应该更改为该语言的其他 URL。

尝试一下,让我知道你的结果是什么。我只是稍微玩过这个并引用了这些主题。我同意你的观点,这个领域有时有太多的配置方法,但推荐的方法却不够多。

http://www.magentocommerce.com/boards/viewthread/227246/

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/multiple-website-setup

I have played with this concept a bit and I believe this is how you would do it. Under Magento Admin->System->Manage Stores you would set up the following.

  • One Website (most likely Main Website)
  • One Store
  • Three Store Views (One for each language)

Then you will swing into System->Configuration. Select each specific language in the "Current Configuration Scope" then change General->Web->Unsecure->Base URL and General->Web->Secure->Base URL to the URL you want to use for each store. i.e. Your German configuration should not use the Website Setting and should be set to domain.de instead.

For each of your virtual hosts, configure them to all point to your single Magento install. When they come in with the specific URL Magento should route them to the proper language version and, if they select a flag, it should change to the other URL for that language.

Give this a try and let me know what your results are. I have only lightly played with this and have referenced these topics. I agree with you that this is an area that sometimes has too many ways it can be configured and not enough recommended ways.

http://www.magentocommerce.com/boards/viewthread/227246/

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/multiple-website-setup

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文