PrestaShop 101

  1. Home
  2. Developer Tips
  3. How to get PrestaShop template page name with php

How to get PrestaShop template page name with php

  • Created August 18, 2016
  • Author Presta101
  • Category Developer Tips
$this->page_name = Dispatcher::getInstance()->getController();

if ($this->page_name == 'index') 
{ 
   ... 
}

Was this article helpful?

Yes No

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
© Copyright PrestaShop Developer.