Promokit Posted September 25, 2012 Share Posted September 25, 2012 Hi. Anybody know how to manage "Quick Links" in the back office of Prestashop 1.5. I want to create a new quick link from my own module, is it possible? Thanks in advance Link to comment Share on other sites More sharing options...
Promokit Posted September 26, 2012 Author Share Posted September 26, 2012 Anybody help Link to comment Share on other sites More sharing options...
Promokit Posted September 26, 2012 Author Share Posted September 26, 2012 Anybody help Link to comment Share on other sites More sharing options...
Krystian Podemski Posted September 26, 2012 Share Posted September 26, 2012 Hello Marek, Sure! It is possible. Here is a snippet: $lang = Configuration::get('PS_LANG_DEFAULT'); $q = new QuickAccess(); $q->link = 'http://www.google.com'; $q->new_window = 1; $q->name[$lang] = $this->l('My Quick Link'); $q->add(); 1 Link to comment Share on other sites More sharing options...
Promokit Posted September 27, 2012 Author Share Posted September 27, 2012 Thank you Krystian, it works. But I mean the section of quick links with the icons, not dropdown. See screenshot. Any suggestions? Link to comment Share on other sites More sharing options...
Krystian Podemski Posted September 27, 2012 Share Posted September 27, 2012 Ok I see in /back-office/themes/default/template/controllers/home/ In place where you would like to place a new icon is HOOK. displayAdminHomeQuickLinks Simply use this hook in your module and place there new icon with markup like other icons. Link to comment Share on other sites More sharing options...
Promokit Posted September 27, 2012 Author Share Posted September 27, 2012 Wow, Thank you very much. I'll try it right now. Link to comment Share on other sites More sharing options...
darksplit Posted October 6, 2012 Share Posted October 6, 2012 [indent=1] <li id="seventh_block">[/indent] [indent=1]<a href="index.php?controller=admincategories&addcategory&token=e76a65b428c1b53d5762bec2a688d4ae">[/indent] [indent=1]<h4>Nueva Categoría</h4>[/indent] [indent=1]<p>Añade una categoría.</p>[/indent] [indent=1]</a>[/indent] [indent=1]</li> [/indent] That's what I wrote for a New Categories button. I wanted to remove all the other ones, but the add product and module. I found the document AdminHomeController and I erased all the code talking about the others. I wasn't able to add a new one from there because I can't find the document which adds the token, so I had always a wrong token. Anyone knows how edit it? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts