vagdou Posted July 4, 2016 Share Posted July 4, 2016 Hi, I want to display the tags bottom Right at footer but I can not do. I've already enabled module tag, and from the management, but also the theme that I installed and from the management, but also the theme that I installed which is : Supermart. I show and a screenshot.. or even if there is a guide to guide me. Thank you very much Yours sincerely vag dou Link to comment Share on other sites More sharing options...
rocky Posted July 5, 2016 Share Posted July 5, 2016 The "Tags block" is not designed to be placed in the footer, so you'll have to modify the module to enable it to be placed there. For example, you can copy and rename the hookLeftColumn function from modules/blocktags/blocktags.php and change the template from blocktags to blocktags_footer like this: function hookFooter($params) { if (!$this->isCached('blocktags.tpl', $this->getCacheId('blocktags'))) { $tags = Tag::getMainTags((int)($params['cookie']->id_lang), (int)(Configuration::get('BLOCKTAGS_NBR'))); $max = -1; $min = -1; foreach ($tags as $tag) { if ($tag['times'] > $max) $max = $tag['times']; if ($tag['times'] < $min || $min == -1) $min = $tag['times']; } if ($min == $max) $coef = $max; else $coef = (Configuration::get('BLOCKTAGS_MAX_LEVEL') - 1) / ($max - $min); if (!count($tags)) return false; if (Configuration::get('BLOCKTAGS_RANDOMIZE')) shuffle($tags); foreach ($tags as &$tag) $tag['class'] = 'tag_level'.(int)(($tag['times'] - $min) * $coef + 1); $this->smarty->assign('tags', $tags); } return $this->display(__FILE__, 'blocktags_footer.tpl', $this->getCacheId('blocktags')); } You can then copy themes/<your_theme>/modules/blocktags/blocktags.tpl to themes/<your_theme>/modules/blocktags/blocktags_footer.tpl and then modify the file so it matches the other modules in the footer. You may need to add code to themes/<your_theme>/css/modules/blocktags/blocktags.css to style the block too. Link to comment Share on other sites More sharing options...
vagdou Posted July 5, 2016 Author Share Posted July 5, 2016 Hi Unfortunately there was a change I did as you told me, but did not change anything. at document which gives the theme file as PDFIt gives without saying somewhere to change as you wrote me. at document which gives the theme file as PDFIt gives without saying somewhere to change as you wrote me.unless I mistake somewhere in that you told me to do. the theme where I bought is this : http://addons.prestashop.com/en/21834-supermart-hightech-responsive.html I only got the theme without modules. Thank you very much Yours sincerely vag dou Link to comment Share on other sites More sharing options...
vagdou Posted July 5, 2016 Author Share Posted July 5, 2016 Unfortunately, there was no change, I wanted to say.. Link to comment Share on other sites More sharing options...
rocky Posted July 6, 2016 Share Posted July 6, 2016 Sorry, I can only answer based on the default PrestaShop theme. I think you'll have to contact the theme developer for support. Link to comment Share on other sites More sharing options...
vagdou Posted July 6, 2016 Author Share Posted July 6, 2016 Hi, rocky Ok, I came contacted with developer for support and the problem was solved. However, thank you very much! Yours sincerely vag dou Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now