Skip to main content

The PrestaShop 1.7 file structure


The PrestaShop developers have done their best for clearly and Inference separate the various parts of the software.

Here is how the files are organized:
·      /admin: Contains all the PrestaShop files pertaining to the back office. When you accessing this folder with any browser, you will be asked to provide proper identification, for security reasons. you should make sure to protect that folder with a .htaccess or .htpasswd file  (You can customized  the name on installation)
·      /app: NEW IN 1.7.
·      /cache:  There are temporary and generating folders used to reduce the load of the server.
·      /classes: The Prestashop object contains all the files related to the model (some are used for the front office, for other back offices). Each file represents the PHP class and its contains methods / properties
·      /config: All of the PrestaShop configuration files are included in this folder until you are asked, you should never change them, as they are directly controlled by the installer and back office of PrestaShop.
·      /controllers: All files in Prestashop controllers - such as the Model-View-Controller (MVC), software architecture used by PrestaShop Each file controls the specific part of PrestaShop.
·      /docs: Some documents, licenses, and sample import files are included. Note: It must be deleted in the production environment.
·      /download: Includes your virtual products, which can be downloaded by the payer for it. Files are stored with the MD5 filename.
·      /img: Includes PrestaShop's default images, icons and picture files - that is, it is not related to the theme. This is where you can find pictures for products categories (/ c sub-folders), those products (/p sub-folders), and back office itself (/ admin subfolders)
·      /install: All files related to the installer of PrestaShop are required to be deployed after you install it to increase security.
·      /js: Most javascript files that are not connected to themes include most of the back office. This is also what you will get jQuery framework.
·      /localization: All Localization Files of PrestaShop - that is, information such as currency, language, tax rules and tax rules groups, states and various units used in the selected country (i.e. volume in liter, weight in kilograms, etc.)
·      /mails: All HTML and text files related to e-mails sent by PrestaShop are included. Each language has its own special folder, where you can edit your content manually if you want it. PrestaShop is a tool for editing your e-mails, which are located in the back office, in Localization> Translation Page
·      /modules:  All contains PrestaShop modules; each has its own folder. If you want to remove a module definitely, uninstall it from the back office, then you should delete its folder.
·      /override: This is a special folder that appeared in PrestaShop 1.4. Using PrestaShop's regular folder / filename convention, files that override default classes or controllers of PrestaShop can be created. This allows you to change PrestaShop core behaviour, without touching the original files, which keeps them safe for the next update. Note: Recommendations are not recommended for auditors modules that you want to distribute / sell, and are strictly prohibited in partner modules. Keep them for your own shop.
·      /pdf: The PDF file contains all the template files (.tpl) related to the firm (invoice, delivery slip, etc.). Replace these files to replace the PDF files created by PrestaShop.
·      /src: NEW IN 1.7. It includes architecture files that include Symphony Framework, Legacy Framework and Adapter Classes.
·      /tests: NEW IN 1.7. has automated tests This folder is not part of the public archive.
·      /themes: It has all the themes currently installed; each has its own folder.
·      /tools: External resources that were compiled in PrestaShop. For instance, this will get you a Smarty (template engine), TCPDF (PDF file generator), swift (mail sender), peer XML parser (PHP Tool), etc.
·      /translations: There is a sub-folder for each available language. However, if you want to change the translation, you must use PrestaShop internal equipment, and do not edit it directly in this folder.
·      /travis-scripts: NEW IN 1.7. Includes Travis-Spasic Scripts. This folder is not part of the public archive.
·      /upload: There are files that will be uploaded by clients for custom products (for example, a picture that a client wants to print on a mug).
·      /vendor: NEW IN 1.7. Contains various 3rd-party tools and frameworks that are used by PrestaShop, such as Composer, cURL, Doctrine, etc.
·      /web: NEW IN 1.7. There are various web-server-specific files, such as favicon.com or robots.txt. This folder is not part of the public archive.
·      /webservice: There are files that enable third-party applications to access PrestaShop via its API.
·      /route: folders that were removed between 1.6 and 1.7:
·      /css: All CSS files that are not attached to themes are included - therefore, this is mostly used by Prestesh Back Office, and has now been moved to the theme.css file in / admin / themes / new-theme / public. Folder
·      /log: The log files generated by PrestaShop in different stages, for example, during the installation process

Comments

Popular posts from this blog

Why Prestashop is the best eCommerce platform?

Why Prestashop is the best eCommerce  platform? E-commerce is the current buzzword in the online world. Every business owner desires to have online eCommerce website to reach many people and get more sales. Prestashop is the one of the best eCommerce solution for the best eCommerce site because of its feature. Free, Open-source Prestashop is totally free to download, You don't need to pay for using it. Supports whenever you need them. Best part of this is you don't need to search for the required documentation as these are available on the website of Prestashop. Easy to Install  And Smart Back-End Prestashop scores very high in the segment of usability. The installation is very easy and the installation requires very little technical skills. PrestaShop helps you to run your store in a manner that proves beneficial for you. It is highly impressive and it is even integrated with all the major carriers such as UPS, FedEx and USPS. Also, the backend dashboard o...

10 Digital Marketing Tips for Small Business Owners

Online Marketing is plays an important role for any small business hoping to stay competitive . But what online marketing tactics should you focus on in your limited time is a busy entrepreneur? Here are 10 necessary digital marketing tips for all small business owners. 1. Starts with Your Website Make sure you have an updated, responsive and attractive website that is easy for users to negative across all devices and has a modern and clean design wit not more than two or three colour theme. 2. Don’t Forget the Basics Include necessary information customers want to know- your business address, phone number, E-mail address, hours of operations, etc. - on your website where visitors can find them right away. You’d be surprised how many businesses forget to list this info. 3. Think Local If your business targets local customers, claim your listings on local search directories, such as Google My Business and Bing places for business. They are free and help ensure th...

Latest PHP web development trends

1) Faster and leaner PHP 7 - PHP 7 looks familiar for developers, but it is especially focused on high performance. - Experts predict the growth of PHP 7 adoption rate, and they have several reasons for verifying such forecast.  - Using PHP 7 the performance of applications has gained up twice comparing with older versions.  - RAM consumption was decreased by 50% during the request processing in PHP 7. - Previously there are many errors which are reason of application stop working now those can be processed as exceptions - The most popular CMS and frameworks such as WordPress, Magento and Symfony ready for PHP 7. - All these changes of PHP 7 increase application speed and reduce resources needs. 2) Market forecast - Experts predict that by 2025 half of American enterprises are expected to run more than 10 applications. - Though PHP cannot be the best choice for any web solutions, it is still holding the lead positions in the development of tech startups...