copy a shop

Is it possible to copy a complete ready shop (empty no products) to another shop location on the same server/root.

I see problems with the database.
I see problems with the Paypluginn

If yes: please give a step by step manual, I am not a programmer

Should be possible.

  1. In PHPMyadmin or similar, choose the database and export all tables to a sql file.
  2. Download all folders and files via a FTP client, for example Filezilla. https://filezilla-project.org/
  3. Upload the same folders and files to the new directory.
  4. In PHPMyadmin create a database, myshop or whatever. Choose Import and select your exported sql file.
  5. Edit litecart/includes/config.inc.php and changes settings under //database

Now it should work, cross fingers ;-)

Thanks for the answer, I will give it a try tomorrow.
Bob

Here is a small wiki article of which files to edit when platform files are moved.

http://wiki.litecart.net/doku.php?id=how_to_move_the_platform

Perhaps someone wanna start a wiki article for ""How to clone a platform"". Which is good if you need a sandbox/development platform after going live.

If I knew how I would like to do it, same for setting up a shop from sratch
bob

Here is my experience. I have read all the above and did the next steps:

1) I went to PHPmyadmin and exported the existing shop database.

2) After that, I downloaded all the shops files from hosting, using Filezilla

3) I went back to PHPmydmin and created new DB, lets call it "test_DB"

4) I also created DB user and password for "test_DB"

5) Then I uploaded all files from step 2 to my new domain.

6) Then I went to [color=#333333][font=Arial, sans-serif]~/includes/config.inc.php and edited all the needed info[/font][/color]

[color=#333333][font=monospace]define('DB_USERNAME', '{DB_USERNAME}');
define('DB_PASSWORD', '{DB_PASSWORD}');
define('DB_DATABASE', '{DB_DATABASE}'); etc.[/font][/color]

[color=#333333][font=Arial, sans-serif]I went to a new site - it works!![/font][/color]

[color=#333333][font=Arial, sans-serif]------------------------------------------[/font][/color]

[color=#333333][font=Arial, sans-serif]The last 2 things I dont understand from http://wiki.litecart.net/doku.php?id=how_to_move_the_platform[/font][/color]
are p.1 and p.2.

Could somebody please explain me what to do?!!

Thx so much.

tim
  1. Base_dir is the webpath to your platform root. For mydomain.com/ it's /. For mydomain.com/litecart_subfolder/ it's /litecart_subfolder/.

  2. This is the full path to the .htpasswd file. E.g. c:/xamp/htdocs/litecart/admin/.htpasswd or /home/user/public_html/admin/.htpasswd

Got it working.

This thread has been closed due to long inactivity. Posting to it is not possible.
View code on GitHub