Jump to content

Two shops One DB it is possible?


Recommended Posts

Hi all,

 

I need to have two different PS installation and only one DB, same for both installation.

 

Why?

 

Because I have few extra modules and they override same function, there is no possibility to merg it. My idea is that to make few installation but user must be logged in all shops using one password.

Share this post


Link to post
Share on other sites

Hi all,

 

I need to have two different PS installation and only one DB, same for both installation.

 

Why?

 

Because I have few extra modules and they override same function, there is no possibility to merg it. My idea is that to make few installation but user must be logged in all shops using one password.

 

All is possible, but this wouldn't be a good idea.

  • Sad 1

Share this post


Link to post
Share on other sites

Two shops on the same database is not an issue at all. Multishop works this way. But your real question is quite different from your topic title. One database can only work with out source code from prestashop. So the simple answer is no.

Share this post


Link to post
Share on other sites

You could not as scully stated have two installations with two shops unless you enable native PrestaShop Multishop.  You could try to hire  it out but anyone that tries what you want do not know what they are doing. lol

 

another option possible is  my multishop module here

https://www.prestaheroes.com/en-us/prestashop-geo-localization-solutions/prestashop-multistore-multishop-pro

Share this post


Link to post
Share on other sites

El Patron, to clarify: it just leads to many issues trying to have two installations with one db. Example? Data from installed modules are partially stored in the database. As soon as you try to have a different setup with modules, you run into troubles. Why? Prestashop gathers its data from installed modules from the database.

 

So the full answer is:

Yes, it is possible as long as the installation and setup is more or les 1:1 identical. Having this said, a second shop doesn't make sense.

No, it is not possible to have different or more/less/other modules running.

Edited by Scully (see edit history)

Share this post


Link to post
Share on other sites

El Patron, to clarify: it just leads to many issues trying to have two installations with one db. Example? Data from installed modules are partially stored in the database. As soon as you try to have a different setup with modules, you run into troubles. Why? Prestashop gathers its data from installed modules from the database.

 

So the full answer is:

Yes, it is possible as long as the installation and setup is more or les 1:1 identical. Having this said, a second shop doesn't make sense.

No, it is not possible to have different or more/less/other modules running.

 

I agree 100% with you.   This person should look at native prestashop multishop...happy day

Share this post


Link to post
Share on other sites

I want to have same module in both shops, now I think second shop could be hidden not visible I need just make work one more module, now it is impossible because other module have same override classes and functions.

Share this post


Link to post
Share on other sites

Create a multishop and modify these overrides so that one store executes one function and the other store the other function.

 

I mean:

function overrideOriginalFunction() {
    if ($shop == 1) {
        $this->overrideOriginalFunction1();
    } elseif ($shop == 2) {
        $this->overrideOriginalFunction2();
    }
}
Edited by joseantgv (see edit history)
  • Like 3

Share this post


Link to post
Share on other sites

I think that it is impossible .

your requirements to login user at the same time on 2 shops - you have to develop custom modules for it.

in theory it is possible but requires a lot of customization.

Share this post


Link to post
Share on other sites
  • 1 year later...

Hi,

I want to make a second Presta webshop for B2B reseller customers, for same products, stocs and different prices.

How can I made this? Someone has same problem? 

Somehow to separate the ordering system of B2B customes from normal orders.

I don't want to pay affiliate marketing commision for existing customers.

Right now I have group discounts, but this is not a good solutions.

thanks

Share this post


Link to post
Share on other sites
11 hours ago, ronniee said:

Hi,

I want to make a second Presta webshop for B2B reseller customers, for same products, stocs and different prices.

How can I made this? Someone has same problem? 

Somehow to separate the ordering system of B2B customes from normal orders.

I don't want to pay affiliate marketing commision for existing customers.

Right now I have group discounts, but this is not a good solutions.

thanks

Do you mean this? http://doc.prestashop.com/display/PS17/Managing+Multiple+Shops

  • Like 1

Share this post


Link to post
Share on other sites
  • 1 year later...

My prestashop will not upgrade, it says something like 3 days when try.

So i wanted to try a new version of prestashop and link it to data base

If that works i will try to upgrade prestashop for my store.

Issue is i have thousands of products

 

Share this post


Link to post
Share on other sites
10 hours ago, pyrotech said:

My prestashop will not upgrade, it says something like 3 days when try.

So i wanted to try a new version of prestashop and link it to data base

If that works i will try to upgrade prestashop for my store.

Issue is i have thousands of products

 

That is not the way to do it. Every Prestashop version has its own database structure. If you put a new PS version on an older database you will get errors like missing fields.

Make instead a copy of both the files and the database and experiment with that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More