In the 7th part of the "PrestaShop Tutorials for Beginners," you will learn how does the module template file override works in the PrestaShop modular structure.
If you want to change something in the template file of the PrestaShop module, very first you need to check if that particular file exists in the module directory under your active theme directory.
In the PrestaShop, the compiler will find the module file in the active theme. If the module will be not there only then it will be searched in the module directory which resides in the root of your PrestaShop installation.