Yossefelbaz Posted December 10, 2012 Share Posted December 10, 2012 Hi. I am trying to get more from Prestashop, but i am getting lost. I am a PHP developer, but this shop system is something else. To get one thing done takes couple of days... Anyway, i want to get the parent id,name of the current page. When i am saying page i mean product page or even subcategories page. And it will be better if someone will just point me where to find out how this system works... Smarty, PHP... Link to comment Share on other sites More sharing options...
Valérie Assetskaya Posted December 11, 2012 Share Posted December 11, 2012 Hi, There are no such notions as parent id, name of current page in PrestaShop. The most likely you mean controller name. In smarty that should be {$page_name} variable and you may try Dispatcher::getInstance()->getController(); in PHP. Best regards. Link to comment Share on other sites More sharing options...
NemoPS Posted December 11, 2012 Share Posted December 11, 2012 Form the page itselft (and I mean smarty), if you mean the parent category by "parent id", you can get it by accessing $product_id_default_category. For the page name, do as Valérie suggested Link to comment Share on other sites More sharing options...
Recommended Posts