Jump to content

Establish test shop based on prod shop


Guest

Recommended Posts

I am trying to establish a test shop on a subdomain based on my prodshop, and have a problem with database name.

Prestashop 1.6.1.23.

I have done the following:

  • downloaded files from the prod shop to my pc.
  • corrected database name in config / settings.inc.php to the database that should belong to the test shop. 
  • uploaded files to the subdomain.
  • exported prod database and imported it into the database that should belong to my test shop.

BUT, when I log in to the backend in the test shop, and look under system configuration, it points to the prod shop's database, and all data is from the prod shop.

An additional check of config / settings.inc.php via my webhost file manager, displays the correct database name.

More info:

  • There are 2 stores in the Multistore. I have corrected in the shop_url table, to the subdomain of both stores.
  • The URL in the admin section is the test shop's URL, all data is from the prod shop. Click on my shop goes to the prod shop.
  • The prod shop's database name is still under the system configuration, although in the config / settings.inc.php's the test shop's database name.
  • Regenerated .htaccess. No effect.

If I make a brand new installation on a subdomain, it works. So the problem is only when the shop on the subdomain is a copy of my prod shop.

As I remember, I have previously set up test shops in the above manner without this issue.

Is there anything I have overlooked / forgotten?

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