Imagine this: you've poured your heart and soul into crafting the perfect PrestaShop store. It's sleek, feature-rich, and attracting tons of customers. But now, update time looms... with a chilling twist. What if the update introduces bugs that crash your site, leaving your precious store in shambles for everyone to see?
Panic not, fellow PrestaShop enthusiast! There's a simple yet powerful solution at your fingertips: cloning your site.
Think of a clone as your store's secret twin, a safe haven for experimentation and testing. Here's why cloning is your best friend:
Cloning your PrestaShop site is not just essential, it's surprisingly easy. In this comprehensive guide, we'll walk you through the entire process step-by-step, from initial setup to seamless testing and deployment.
Ready to unleash the power of cloning and safeguard your live store? Dive into this guide and experience the magic of worry-free PrestaShop updates!
Create a "dev" folder within your website's root directory.
Zip relevant files from the live site, excluding unnecessary folders (test folders, backup folders, etc.) for a faster process.
Reload site. Move the compressed file to the "dev" folder and extract its contents.
Go to the “dev” folder then extract the compressed file.
Create a new database for the "dev" site, ensuring compatibility and easy identification.
Create a new user.
Add the new user to the database, then assign all privileges to the user:
Log into your site’s database, find and select the current database of your live website. Go to the “Export” tab and export to .sql file.
Go to the “dev” database that you created => import the .sql file that you have just exported from the live site.
Open the configuration file in the code file of the "dev" site => then enter the database information to connect the "dev" site to its database.
Change these parameters to the ones you set up for the new database: database name + database user + database password.
Configure "shop_url” table:
Configure “ps_configuration” table:
Open the “ps_configuration” table of the “dev” database.
On the Filter section: enter “250” value for “Number of rows”; enter “domain” value for “Filter rows” to search.
In the search results, replace the domain of the "dev" site in the value column of the two lines:
PS_SHOP_DOMAIN
PS_SHOP_DOMAIN_SSL
Access the Back Office of the new copy site via the domain: your_domain/your_dev_folder/admin_folder
E.g.: example.com/dev/admin1
Generate Friendly URLs and clear cache.
Tips for convenience:
Creating a PrestaShop copy site might sound complex, but it's a crucial and manageable process. Follow the outlined steps to clone your store successfully, and refer to the provided tips for added convenience. Your replicated PrestaShop site is now ready for comprehensive testing and updates.
If you're exploring solutions for data migration or website upgrades, discover our collection of PrestaShop Migrate/Upgrade modules.