I'm currently working on a Prestashop 1.7.1.0 module targeted at clothing sites. I need to get the exact page name the user's currently browsing such as 'index', 'Women', 'Tops', 'T-shirts', into the module. I tried using Smarty global variables for this but those seem to be removed for this version.
Any suggestions & help would be really appreciated.
To get this in a tpl, the new variable in 1.7 version to do this is as follows:
{$page.page_name}
Instead of:
{$page_name}
You can use this in any tpl of your module.
It works for me in a Prestashop 1.7 module I created, however I can't get other global smarty variables, i.e. shop_name, lang_iso, etc...