如何在不使用CPanel的情况下设置多商店opencart? [英] How to set up multistore opencart without using CPanel?

查看:140
本文介绍了如何在不使用CPanel的情况下设置多商店opencart?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试不使用CPanel来设置opencart(可以在cPanel中进行设置

I tried to setup opencart without using CPanel( Setting it up in CPanel can be done this way). I already have opencart(lets call it the main shop) running at < mydomain >.com What I did is the following:

  1. 创建了一个单独的子域,例如shop2. mydomain> .com,
  2. 使shop2 subdoamin指向与< mydomain> .com(主要商店)
  3. 为shop2子域创建了一个虚拟主机(apache),其文档根点与现有主商店相同.
  4. 在opencart中创建了一个新商店,并将商店网址设置为shop2. mydomain> .com(无论是否执行此步骤,都不会改变我在下面描述的问题.

问题是shop2. mydomain> .com现在与<完全相同.例如mydomain> .com,如果从现有的opencart中禁用了产品,则也从shop2中也禁用了该产品.

The problem is that shop2.< mydomain >.com now is exactly the same as < mydomain >.com , for example, if a product is disabled from the existing opencart, it is disabled from the shop2 as well.

opencart论坛上询问类似的问题,但没有提供了答案.

Similar question is asked on the opencart forum but no answer has been provided.

我的环境是:Apache,Ubunbu.

My environment is: Ubunbu, Apache.

推荐答案

所以这个问题的标题不正确,因为您已经设置了一个多店.相反,您应该问How to disable a product on just one store within a multistore installation?,不是吗?

So this question has an incorrect title as You already did set up a multistore. Instead of this You should be asking How to disable a product on just one store within a multistore installation?, shouldn't You?

问题很明显,答案也很明确-您无法通过启用/禁用产品/类别等来做到这一点.multistore功能允许您仅拥有一个数据库,而您可以设置要在商店1上展示到商店X上的产品(或类别或其他内容).

The problem is clear and the answer too - You cannot do this by enabling/disabling the product/category, etc. The multistore feature allows You to have only one database while You can set a product (or category or whatever) to show on store 1 to store X.

如果您禁用该产品,则对所有商店都禁用它.

If You disable the product, You disable it for all stores.

如果您只想在商店2而不是商店1展示产品,请在链接->选项商店标签上的产品详细信息表单中选中/取消选中相应的复选框.取消选中Default并检查例如Store 2您将产品设置为仅在商店2中显示-但必须启用该产品.分类,制造商等的使用方式相同.

If You want a product to be shown only at store 2 but not at store 1, check/uncheck the appropriate checkboxes within a product detail form at tab Links -> option Stores. By unchecking Default and checking e.g. Store 2 You set the product to be shown only at store 2 - but the product has to be enabled. Same way for categories, manufacturers, etc.

这篇关于如何在不使用CPanel的情况下设置多商店opencart?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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