$this->page_name = Dispatcher::getInstance()->getController(); if ($this->page_name == 'index') { ... }
Related Articles
- Where is the database connection file config/settings.php in PrestaShop 1.7
- How to setup cron job in cPanel to execute a URL
- [PrestaShop Bug] Cannot Edit Product – Save Does Not Work
- How to get all customers who have never bought anything in PrestaShop
- How to get PrestaShop controller page name with php
- How to upgrade PrestaShop database only