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 22.214.171.124
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@example.com" url: "https://www.prestashop.com" meta: compatibility: from: 126.96.36.199 to: ~