If you use PhpStorm and PrestaShop you probably noticed that you can't get your IDE to autocomplete everything.
PrestaShop is designed to be overridden, and every class from the core is suffixed with 'Core'.
For example, Address class is actually declared this way:
1<?php2class AddressCore extends ObjectModel3{4 // ...5}
So I have generated a file that extends each class with the correct name
1<?php2class Address extends AddressCore {}
Configure PhpStorm with PrestaShop
- Download the file autocomplete.php (or clone this repo)
- Add the file to your project as an "External Library" as shown on the image below
Find out more on Github: https://github.com/julienbourdeau/PhpStorm-PrestaShop-Autocomplete