Jump to content
theDoris

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.

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 2

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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