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.
The following content assumes you’re a developer and you want to create a theme or a module.
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 126.96.36.199
Also we would warn you to test your final result with a zip release, just for safety (since vendor version might be slightly different).
If you haven’t done it yet, we strongly recommend you to read our article Set Up Your Git For Contributing
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 http://gitignore.io.
If you are building a full project for a client, you can read our article on building a gitignore for PrestaShop.
When you want to create a theme, the best way is to use the Starter Theme as a base theme.
Create a new folder under
themes/, download the Starter Theme, and copy its files in your new folder.
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@example.com" url: "http://www.prestashop.com" meta: compatibility: from: 188.8.131.52 to: ~