When you download the ecommerce platform, you will have a file called “ecommerce-platform.zip” on your computer.
When you unzip that file, you will find a folder called “ecommerce-platform”, and inside it you will find two folders:
We will refer to these folders throughout this tutorial.
Here are the steps you need to follow to import the ecommerce platform into a local WordPress installation.
1- Create a new local WordPress Multisite installation
Make sure you create a subdomains WordPress multisite installation.
If you already created a simple site, you can still enable the Multisite feature.
- Go to your WordPress installation folder
- Open the wp-config.php file
- Make sure the following lines are just before the text that says: /* That’s all, stop editing! Happy publishing. */
define( 'WP_ALLOW_MULTISITE', true );
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', 'yourdomain.local' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
Make sure to change the text “yourdomain.local” with your own local domain.
It should look something like this:
Once this is done, save the changes.
2- Copy the database credentials from the “wp-config.php” file
We will copy the database credentials because we will need them later to edit the database we will import.
For now, you can copy them and save them in another text document.
- Open the folder of your local WordPress installation
- Locate and open the wp-config.php file.
- Find the following lines and copy them:
define( 'DB_NAME', 'username' );
/** Database username */
define( 'DB_USER', 'username' );
/** Database password */
define( 'DB_PASSWORD', 'password' )
Note that the username and password values will be unique, so don’t just copy the text from this page, but the values contained in the wp-config.php file of your local installation.
Paste the credentials temporarily in any other document, as you will use them later.
3- Copy the platform files to the WordPress installation folder
First, you need to unzip the “ecommerce-platform.zip” file.
As we mentioned at the beginning, this file contains a folder called “ecommerce-platform”, which contains two folders:
Second, you need to get the necessary premium plugins for this platform. You can go to the purchase page of each plugin by clicking on each title below:
Third, you need to unzip the .zip file of each premium plugin.
Each plugin will leave you a folder.
Fourth, you need to copy the folder of each plugin to ecommerce-platform > files > wp-content > plugins.
Fifth, you need to copy the contents of the files folder to your local WordPress installation folder. If it asks you if you want to replace files, accept to replace.
4- Import the database
First, open the database of your local WordPress installation.
Second, select all the tables and click Drop to delete all the tables. This is because we need to clean the database to import the new data.
Third, go to Import and load the local.sql file which is in ecommerce-platform > database.
Finally, complete the import.
5- Add the old credentials to the “wp-config.php” file
Go to your WordPress installation folder and open the wp-config.php file.
Remember we said you would use the old credentials from the wp-config file?
Now it’s time to paste the values into the wp-config.php file.
Note that you need to replace the data in the wp-config.php file with the new values.
After that, scroll down and make sure to edit the following line:
define( 'DOMAIN_CURRENT_SITE', 'yourdomain.com' );
Add your own domain.
Once you have done this, click Save changes.
6- Replace the URLs in the database
The database will contain URLs with the domain http://ecommerceplatform.local, so you need to replace that domain with your own local domain.
- In the browser, go to yourdomain.com/Search-Replace-DB-master/index.php.
- In Replace enter http://ecommerceplatform.local.
- In the With field, enter your site’s domain.
- Note: Be sure to include the protocol you are using (http:// or https://) in your own domain for the replacement to be correct.
- Finally, click Live run.
Once the replacement process is complete, you can do the same with the subdomains of the platform.
Our platform contains 4 main sites:
- The main site (http://ecommerceplatform.local)
- The frontend dashboard site (http://dashboard.ecommerceplatform.local)
- A WP Ultimo site template (http://template.ecommerceplatform.local)
- A test site (http://test.ecommerceplatform.local)
If you want to use different subdomains for these sites, you can replace those subdomains with other subdomains. For example:
- The main site: https://yourdomain.com
- The global dashboard site: https://admindashboard.yourdomain.com
- The site template: https://sitetemplate.yourdomain.com
- The test site: https://testsite.yourdomain.com
Upon completion of all database replacements, you can click “Delete me” to remove the search and replace utility from your WordPress folder, or you can keep it and just close the window.
7- Activate premium plugin licenses
Log in with the following credentials:
- Username: admin
- Password: password
Go to Network Admin > Plugins and activate the plugins using the licenses you purchased.
All plugins are free, except:
Now you can start using the platform on your own local domain.
You can make all the changes you want.