Jump to content

Install 2 different prestashop instances on the same public domain?


Recommended Posts

Hi Guys,

I'm having some trouble with my multistore ecommerce site, regarding some paypal redirection and other  stuffs that let my website not fits my company needs, so I decided to split my wholesalers and general customers prestashop multistore installation on two different prestashop installation (different folders) on the same public domain www.mystore.com, as to have:
 

www.mystore.com/store
and
www.mystore.com/resellers

Each of them is a separate mysql DB instance and they will have two separate BOs. (it will be complex to administer, but it's OK for us)

 

Is this possible?

Is there any way to extract customer's profiles (username, password, company info etc etc) that has been registered so far in the existing multistore site, and import them on the splitted dedicated prestashop installation? (store or resellers)

 

Thanks to all who will help me with this information!

 

Cico.

Link to comment
Share on other sites

Hi cico!

 

Honestly I'm sorry you are leaving the multishop for separate shops.

 

I think what you want to accomplish is simple, there would be no need to port customers etc to 2nd shop.

 

Just use the original db and files, copy to your 2nd domain.

 

You will then need to log into the back office of the 2nd domain to change url and base uri..seo & url's....note if you do not have accees to back office 2nd domain, use phpmyadmin, find yourprefix_shop_url there.

Link to comment
Share on other sites

Hi Fred!

I'll never leaving your module! IT IS GREAT!  I'll use it on my wholesale shop! ;-)

 

My domain will remain the same, eg: www.mysite.com with 2 separate prestashop installations:

store in a root subfolder(www.mysite.com/store), and resellers on another root subfolder (www.mysite.com/resellers).

I'll use two separate mysql db instances.

My question is to know if it's possible to accomplish this, and if exist a way to export the resellers customers from my mysql backup and import them on the new installation

Link to comment
Share on other sites

Read carefully what I wrote above, i.e. create new folder in root (shop2) copy original shop files to 'new' folder in root and create new db for 2nd shop...then export shop1 db, then import into newly created db for shop2

 

In shop2 config/and import 1st shop domain mysql to new db.

 

2nd shop change config/settins.inc.php  (change to new 2nd shop mysql db)

define('_DB_SERVER_', 'same as shop 1 server name');
define('_DB_NAME_', '2nd shop db name');
define('_DB_USER_', '2nd shop db password');
define('_DB_PASSWD_', '2nd shop password');

in shop(2) database, find table shop_url, here you will change the base uri, this is the folder you copied shop 1 files.

 

Note: I may have missed a something above but this should be enough to get your 2nd shop up and running.

 

re, authonly...i.e for previous communications, this is the end of a five week holiday travel...and you got me on one of my out of sorts days, i.e. laptop perched on top of a suit case...jajajajaja

  • Like 1
Link to comment
Share on other sites

Thank you Fred!

I'll test it tonight or tomorrow!

 

I'll let you know!

 

PS: I'm sorry for your laptop, I hope it's all ok between us regarding previous conversations. ;-)

 

cico, you are exactly the type of person that makes PrestaShop community a joy to be a part of.  This is a hobby for me, I come from mainframe systems where I burned out (read exploded) at 42 and retired...now at 56...I sometimes relapse...jajajajaja

 

please keep us up to date...make sure to search if you run into an issue because what you are doing is not new. :)

 

I will be away from internet, cali-->miami tomorrow but will check status when possible.

 

happy day!

Link to comment
Share on other sites

Hi Fred,

I followed your procedure:

  1. Backed up mySQL
  2. backed up prestashop files
  3. exported my sql from mysqladmin and reimported on the second DB
  4. changed the config/settins.inc.php as you suggested
  5. modified the customer shop_id from 2 to 1 (1 was regular client on the old website, and 2 was the reseller ID)
  6. Tested it!

My stored clients username did maintained the password and all the informations.

I had to play with price rules and customers group in mysqladmin, as they are referenced to shop_id 2 and need to be changed to ID1.

Every new client which request for login (using a very great module) is automatically created in shop_id1

 

Thank you very much for your help.

As a prestashop newbie, I really appreciate it!

 

Cico.

Edited by Jakketto (see edit history)
  • Like 1
Link to comment
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...