Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page
Now that you intend to building a theme for PrestaShop, you are better off keeping all your development work on your machine. The main advantage is that it makes it possible for you to entirely bypass the process of uploading your files on your online server in order to test your changes. Another advantage is that a local test environment enables you to test code without the risk of breaking your production store. Having a local environment is the essential first step in the path of web development.
Open a command line on your (empty) working directory, then:
git clone https://github.com/PrestaShop/PrestaShop.git
Using git you can choose your PrestaShop version:
git checkout 184.108.40.206
Also we would warn you to test your final result with a zip release, just for safety (since vendor version might be slightly different).
A gitignore file is a must-have for any Git-versioned project, as it specifies intentionally untracked files that Git should ignore.
Generally, you shouldn’t version the following types of files:
We suggest that you build your own using https://gitignore.io.
When you want to create a theme, the best way is to use the Classic theme (included with PrestaShop) as a base.
Create a new folder under
themes/, and copy the contents of
classic in it.
First of all, you need to rename
config/theme.yml and edit it according to the name of your theme.
name: YOUR_THEME_DIRECTORY_NAME display_name: YOUR THEME NAME version: 1.0.0 author: name: "PrestaShop Team" email: "[email protected]" url: "https://www.prestashop.com" meta: compatibility: from: 220.127.116.11 to: ~