Jump to content

more different shops using subdomains


Recommended Posts

Hi everybody !

I am quite new in prestashop. I started to "play" with it a few weeks ago. I would like to create more different shops , using subdomains. I have installed one shop on the main domain - everything works perfect, but when i have installed the second shop in a subdomain ( ex: subdomain.mainsite.com) i encountered some problems at Authentification and Cart .

More exactly i have not succed in login in the shop installed on the subdomain and no order can be done there..

Please help me ....with this isue !!! What should i do to install more different shops in subdomains and everything works perfect ...... Each shop will have its salesman, administrator and so on.

Can this be done ...using Prestashop?

I have used version 1.4.5.1.

Thank you very much for your help ..!!!!

Link to comment
Share on other sites

are you doing a fresh install on the subdomain? If not and you are copying the site from your main domain to subdomain (including db), then you will need to update a few things: (also note you can define a subomain as a domain if if the name is a subdomain. This allows for some important benefits, like limiting bandwidth/disk space. One typcially loses a lot of definition quality with a straight sub-domain.

 

 

 

see this: http://www.addons-mo...ps_shop_domain/

 

check and change if needed the following fields in the new remote mysql db table yourprefix_configuration:

PS_SHOP_DOMAIN alpha.mywebsite.com.co

PS_SHOP_DOMAIN_SSL alpha.mywebsite.com.co

  • Uploaded site files to subdomain/domain root
  • Exported shop localhost database, created remote server database and imported the localhost sql
  • Updated the settings.inc.php as follows

· From: (running localhost)

 

 

· define('_DB_SERVER_', 'localhost');

· define('_DB_TYPE_', 'MySQL');

· define('_DB_NAME_', 'prestashop141alpha');

· define('_DB_USER_', 'root');

· define('_DB_PASSWD_', ‘mypassword’);

· define('_DB_PREFIX_', 'alpha_');

· define('_MYSQL_ENGINE_', 'InnoDB');

· define('__PS_BASE_URI__', '/prestashop141alpha/');

To: (running remote) subdomain alpha.mydomain.com.co

· define('_DB_SERVER_', 'localhost');

· define('_DB_TYPE_', 'MySQL');

· define('_DB_NAME_', 'alpha');

· define('_DB_USER_', 'alpha');

· define('_DB_PASSWD_', ‘mypassword’);

· define('_DB_PREFIX_', 'alpha_');

· define('_MYSQL_ENGINE_', 'InnoDB');

· define('__PS_BASE_URI__', '/');

 

Resulted in:

Back Office – will not accept my password. Reset the pwd : See http://nickbartlett....-in-prestashop/

 

This site is working both on the back and front sides.

 

NOTE(s)

MAKE SURE TO CLEAR YOUR BROWSER COOKIES WHEN TESTING!

I already have prestashop sites on my remote server so I know that the necessary modules are loaded.

Link to comment
Share on other sites

  • 6 months later...

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...