Christian Posted April 18, 2018 Share Posted April 18, 2018 Hi y'all, I have a question, let me explain my situation. For a client I have to edit a website made with prestahop. For this reason I copied all data from /Shop and put them into a new folder created for the occasion. Secondly, I exported the entire database and put it into my new database test. I also changed url in the ps_shop table in the new database. After this, I edited the /Shop/config/setting.inc.php with my database information. Up to here everything is fine. Now I want to replace the entire online shop with my edited shop and to do this I thought to export again the local database, change again the url in ps_shop, import it in the current database overwriting it, copy the entire /Shop folder and replace the current online folder with mine, edit again /Shop/config/setting.inc.php and stop. It's that correct or I miss something? (I'm wondering if all urls into the database will automatically change when I'll edit the ps_shop table url). Let me know what do you thing about. Thank you! Link to comment Share on other sites More sharing options...
selectshop.at Posted April 18, 2018 Share Posted April 18, 2018 Tutorial how to clone your Prestashop: https://www.prestashop.com/forums/topic/313999-tutorial-how-to-clone-your-shop-for-upgrades/ https://www.prestashop.com/forums/topic/102164-clone-a-prestashop-site-to-another/?do=findComment&comment=2621070 https://www.youtube.com/watch?v=Ev5ZkvtyIBk 1 Link to comment Share on other sites More sharing options...
Christian Posted April 18, 2018 Author Share Posted April 18, 2018 Thanks for not reading the question. I have already trasferred the site, but the is the viceversa part I miss!! Link to comment Share on other sites More sharing options...
doekia Posted April 18, 2018 Share Posted April 18, 2018 Thanks for not reading the answer. Simply reuse the same tutorial by mentaly switching source and destination. No magic, no Voodoo, just plain step by step instruction to follow Link to comment Share on other sites More sharing options...
Christian Posted April 18, 2018 Author Share Posted April 18, 2018 I got it, but it's not that obvious. As I wrote above, what about all urls into database? They will automatically change when I'll change ulr in ps_shop? In this case it would be magic, no? Link to comment Share on other sites More sharing options...
doekia Posted April 18, 2018 Share Posted April 18, 2018 Url within the database does not change however generated links will change accordingly. For in database url, you'll have to do a sql replace by yourself. Either when you clone on your testbed or when you clone back to your live install. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now