How to install a theme - NopCommerce version 4.0 and above
- Go to Configuration -> Plugins and click the Upload plugin or theme button
- A popup will appear asking you to choose a file to upload. Click on the Choose File button, navigate to the downloaded zip file and select it.
- Click on the Upload plugin or theme button
- After the plugins finish uploading find the Seven Spikes Core plugin and click Install.
- Install all other SevenSpikes plugins.
- Find Nop Theme Name plugin and click Install.
Now your theme is ready to be used and you can set it as the current theme of your store.
How To Install A Theme - nopCommerce version 3.90 and below
When you download a theme from Nop-Templates it comes in a zip package with the name of the theme and the exact product version i.e NopThemeName_X.X.YYY.ZZZZZ.zip.
Product version - NopThemeName_X.X.YYY.ZZZZZ.zip i.e NopThemeName_3.7.100.13000.zip
- X.X - corresponds to the nopCommerce version i.e 3.7 means nopCommerce version 3.7.
- YYY - corresponds to the Build number i.e 100 means internal build number 100.
- ZZZZZZ - corresponds to the revisions i.e 13000 means revision 13000.
You need to extract the NopThemeName_X.XX.YYY.ZZZZZ.zip file.
There are two important folders - Plugins and Themes.
Copy the content of the Plugins folder into the Plugins folder of your nopCommerce installation. This folder contains all the plugins that come with the theme as well as the plugin for the theme.
Copy the content of the Themes folder into the Themes folder of your nopCommerce installation. This folder contains the actual theme files like images, fonts, css, javascript and razor files.
Now login to your website and go to the Administration to install all the plugins that come with the theme and the theme plugin.
- Go to Configuration -> Plugins and click Reload list of plugins.
- Find Seven Spikes Core plugin and click Install.
- Install all other SevenSpikes plugins.
- Find Nop Theme Name plugin and click Install.
Now your theme is ready to be used and you can set it as the current theme of your store.
How to use theme demo data
First, you will need the demo data. You can download it for any theme:
- Go to My Downloads page
- Select the version for your theme
- Click on the DEMO DB button under Downloads
After you have the theme demo data you need to do the following things:
Let's say you already have nopCommerce up and running and you have installed the theme as per the instructions in the documentation.
Now you want to make your web site to point to the Demo Database to see how it is setup.
You need to do the following steps:
- Create a new database i.e DemoDatabase.
- Restore the backup into the DemoDatabase. You can achieve that through software like Microsoft SQL Server Management Studio for example. Some hosting providers have a feature for restoring a database from .bak file with a few clicks (check with your hosting provider).
- In your nopCommerce installation find the App_Data folder.
- Backup the appsettings.json (dataSettings.json or Settings.txt file in nopCommerce 3.9 and below), so that you can later restore to your store database. Then modify the appsettings.json (dataSettings.json) file by changing the name of the database to DemoDatabase.
- Backup the plugins.json file, so that you can later restore the same plugins of your store database. Then delete the plugins.json file and add plugins.json (or installedPlugins.json) from the demo database package. This is needed so that the upgrade database migrations are run properly.
Now when you restart nopCommece it will load the data from the DemoDatabase.
You can see how the various plugins are set up and make the same setup (if you want) in your store.