Nando112 Posted March 27, 2014 Share Posted March 27, 2014 (edited) Hello, Id like to change Social Block position from footer, to Nav hook (On header) I hope you can help me, Thanks! Prestashop 1.6 (Default Bootstrap Theme) Edited March 27, 2014 by vekia (see edit history) 1 Link to comment Share on other sites More sharing options...
vekia Posted March 27, 2014 Share Posted March 27, 2014 before last closing bracket (in module .php file) add this: public function hookdispalyNav($params){ return $this->hookDisplayFooter(); } then go to modules > positions click on transplant button and transplant social block module to this hook. 4 Link to comment Share on other sites More sharing options...
Nando112 Posted March 27, 2014 Author Share Posted March 27, 2014 (edited) before last closing bracket (in module .php file) add this: public function hookdispalyNav($params){ return $this->hookDisplayFooter(); } then go to modules > positions click on transplant button and transplant social block module to this hook. Thanks for the reply Vekia, I have done you have say me, but the social block doesnt show the buttons of my networks, I show you the result in the capture. Thanks Edited March 27, 2014 by Nando112 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 27, 2014 Share Posted March 27, 2014 Thanks for the reply Vekia, I have done you have say me, but the social block doesnt show the buttons of my networks, I show you the result in the capture. Thanks can you share url to your shop, pleasE? now everytihng depends on css styles. Link to comment Share on other sites More sharing options...
Nando112 Posted March 27, 2014 Author Share Posted March 27, 2014 can you share url to your shop, pleasE? now everytihng depends on css styles. http://www.threew.es I have tried changing the line, public function hookDisplayNav($params){ return $this->display(__FILE__, 'blocksocial.tpl'); } but I cant see the icons, I hope you can help me Link to comment Share on other sites More sharing options...
vekia Posted March 27, 2014 Share Posted March 27, 2014 use this in your global.css nav #social_block { float: right; width: 33%; padding: 6px 15px 0 15px; } @media (max-width: 767px) { nav #social_block { width: 100%; float: left; padding-top: 5px; } } nav #social_block ul { float: right; } @media (max-width: 767px) { nav #social_block ul { float: none; } } nav #social_block ul li { float: left; width: 40px; text-align: center; } @media (min-width: 768px) and (max-width: 991px) { nav #social_block ul li { width: 30px; } } nav #social_block ul li a { display: inline-block; color: #908f8f; font-size: 28px; } @media (min-width: 768px) and (max-width: 991px) { nav #social_block ul li a { font-size: 20px; } } nav #social_block ul li a span { display: none; } nav #social_block ul li a:before { display: inline-block; font-family: "FontAwesome"; vertical-align: -5px; } nav #social_block ul li a:hover { color: white; } nav #social_block ul li.facebook a:before { content: "\f09a"; } nav #social_block ul li.twitter a:before { content: "\f099"; } nav #social_block ul li.rss a:before { content: "\f09e"; } nav #social_block ul li.youtube a:before { content: "\f167"; } nav #social_block ul li.google-plus a:before { content: "\f0d5"; } nav #social_block ul li.pinterest a:before { content: "\f0d2"; } nav #social_block h4 { float: right; margin-bottom: 0; font-size: 21px; line-height: 25px; text-transform: none; padding: 0 10px 0 0; margin-top:0px; } effect 5 Link to comment Share on other sites More sharing options...
Nando112 Posted March 27, 2014 Author Share Posted March 27, 2014 use this in your global.css nav #social_block { float: right; width: 33%; padding: 6px 15px 0 15px; } @media (max-width: 767px) { nav #social_block { width: 100%; float: left; padding-top: 5px; } } nav #social_block ul { float: right; } @media (max-width: 767px) { nav #social_block ul { float: none; } } nav #social_block ul li { float: left; width: 40px; text-align: center; } @media (min-width: 768px) and (max-width: 991px) { nav #social_block ul li { width: 30px; } } nav #social_block ul li a { display: inline-block; color: #908f8f; font-size: 28px; } @media (min-width: 768px) and (max-width: 991px) { nav #social_block ul li a { font-size: 20px; } } nav #social_block ul li a span { display: none; } nav #social_block ul li a:before { display: inline-block; font-family: "FontAwesome"; vertical-align: -5px; } nav #social_block ul li a:hover { color: white; } nav #social_block ul li.facebook a:before { content: "\f09a"; } nav #social_block ul li.twitter a:before { content: "\f099"; } nav #social_block ul li.rss a:before { content: "\f09e"; } nav #social_block ul li.youtube a:before { content: "\f167"; } nav #social_block ul li.google-plus a:before { content: "\f0d5"; } nav #social_block ul li.pinterest a:before { content: "\f0d2"; } nav #social_block h4 { float: right; margin-bottom: 0; font-size: 21px; line-height: 25px; text-transform: none; padding: 0 10px 0 0; margin-top:0px; } effect Wow! that have been perfect! Thanks very much! Best regards. 1 Link to comment Share on other sites More sharing options...
vekia Posted March 27, 2014 Share Posted March 27, 2014 you're very welcome i marked whole topic as solved with regards, Milos 1 Link to comment Share on other sites More sharing options...
dudemon Posted April 11, 2014 Share Posted April 11, 2014 Hi Vekia, how can we change the icons for the social block?I would enjoy more colorful icons for FB, twitter, pinterest, etc Ciao and thanks, dudemon Link to comment Share on other sites More sharing options...
vekia Posted April 11, 2014 Share Posted April 11, 2014 in this case it will be necessary to modify the module template file may i know what icons you want to use? i will prepare modification 1 Link to comment Share on other sites More sharing options...
bburrer77 Posted April 25, 2014 Share Posted April 25, 2014 before last closing bracket (in module .php file) add this: public function hookdispalyNav($params){ return $this->hookDisplayFooter(); } then go to modules > positions click on transplant button and transplant social block module to this hook. I tried to add this to my .php file, and now I get a http 500 error in my back office, and my site is the same? Please help Link to comment Share on other sites More sharing options...
vekia Posted April 25, 2014 Share Posted April 25, 2014 I tried to add this to my .php file, and now I get a http 500 error in my back office, and my site is the same? Please help hello it means that you added code in wrong place. can you show your modified file, please? 1 Link to comment Share on other sites More sharing options...
bburrer77 Posted April 25, 2014 Share Posted April 25, 2014 <?php/** 2007-2014 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to [email protected] so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <[email protected]>* @copyright 2007-2014 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShopSA*/if (!defined('_CAN_LOAD_FILES_')) exit; class blocksocial extends Module{ public function __construct() { $this->name = 'blocksocial'; $this->tab = 'front_office_features'; $this->version = '1.1'; $this->author = 'PrestaShop'; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Social networking block'); $this->description = $this->l('Allows you to add information about your brand\'s social networking accounts.'); $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); } public function install() { return (parent::install() AND Configuration::updateValue('BLOCKSOCIAL_FACEBOOK', '') && Configuration::updateValue('BLOCKSOCIAL_TWITTER', '') && Configuration::updateValue('BLOCKSOCIAL_RSS', '') && Configuration::updateValue('BLOCKSOCIAL_YOUTUBE', '') && Configuration::updateValue('BLOCKSOCIAL_GOOGLE_PLUS', '') && Configuration::updateValue('BLOCKSOCIAL_PINTEREST', '') && $this->registerHook('displayHeader') && $this->registerHook('displayFooter')); } public function uninstall() { //Delete configuration return (Configuration::deleteByName('BLOCKSOCIAL_FACEBOOK') AND Configuration::deleteByName('BLOCKSOCIAL_TWITTER') AND Configuration::deleteByName('BLOCKSOCIAL_RSS') AND Configuration::deleteByName('BLOCKSOCIAL_YOUTUBE') AND Configuration::deleteByName('BLOCKSOCIAL_GOOGLE_PLUS') AND Configuration::deleteByName('BLOCKSOCIAL_PINTEREST') AND parent::uninstall()); } public function getContent() { // If we try to update the settings $output = ''; if (Tools::isSubmit('submitModule')) { Configuration::updateValue('BLOCKSOCIAL_FACEBOOK', Tools::getValue('blocksocial_facebook', '')); Configuration::updateValue('BLOCKSOCIAL_TWITTER', Tools::getValue('blocksocial_twitter', '')); Configuration::updateValue('BLOCKSOCIAL_RSS', Tools::getValue('blocksocial_rss', '')); Configuration::updateValue('BLOCKSOCIAL_YOUTUBE', Tools::getValue('blocksocial_youtube', '')); Configuration::updateValue('BLOCKSOCIAL_GOOGLE_PLUS', Tools::getValue('blocksocial_google_plus', '')); Configuration::updateValue('BLOCKSOCIAL_PINTEREST', Tools::getValue('blocksocial_pinterest', '')); $this->_clearCache('blocksocial.tpl'); Tools::redirectAdmin($this->context->link->getAdminLink('AdminModules').'&configure='.$this->name.'&tab_module='.$this->tab.'&conf=4&module_name='.$this->name); } return $output.$this->renderForm(); } public function hookDisplayHeader() { $this->context->controller->addCSS(($this->_path).'blocksocial.css', 'all'); } public function hookDisplayFooter() { if (!$this->isCached('blocksocial.tpl', $this->getCacheId())) $this->smarty->assign(array( 'facebook_url' => Configuration::get('BLOCKSOCIAL_FACEBOOK'), 'twitter_url' => Configuration::get('BLOCKSOCIAL_TWITTER'), 'rss_url' => Configuration::get('BLOCKSOCIAL_RSS'), 'youtube_url' => Configuration::get('BLOCKSOCIAL_YOUTUBE'), 'google_plus_url' => Configuration::get('BLOCKSOCIAL_GOOGLE_PLUS'), 'pinterest_url' => Configuration::get('BLOCKSOCIAL_PINTEREST'), )); return $this->display(__FILE__, 'blocksocial.tpl', $this->getCacheId()); } public function renderForm() { $fields_form = array( 'form' => array( 'legend' => array( 'title' => $this->l('Settings'), 'icon' => 'icon-cogs' ), 'input' => array( array( 'type' => 'text', 'label' => $this->l('Facebook URL'), 'name' => 'blocksocial_facebook', 'desc' => $this->l('Your Facebook fan page.'), ), array( 'type' => 'text', 'label' => $this->l('Twitter URL'), 'name' => 'blocksocial_twitter', 'desc' => $this->l('Your official Twitter accounts.'), ), array( 'type' => 'text', 'label' => $this->l('RSS URL'), 'name' => 'blocksocial_rss', 'desc' => $this->l('The RSS feed of your choice (your blog, your store, etc.).'), ), array( 'type' => 'text', 'label' => $this->l('YouTube URL'), 'name' => 'blocksocial_youtube', 'desc' => $this->l('Your official YouTube account.'), ), array( 'type' => 'text', 'label' => $this->l('Google Plus URL:'), 'name' => 'blocksocial_google_plus', 'desc' => $this->l('You official Google Plus page.'), ), array( 'type' => 'text', 'label' => $this->l('Pinterest URL:'), 'name' => 'blocksocial_pinterest', 'desc' => $this->l('Your official Pinterest account.'), ), ), 'submit' => array( 'title' => $this->l('Save'), ) ), ); $helper = new HelperForm(); $helper->show_toolbar = false; $helper->table = $this->table; $lang = new Language((int)Configuration::get('PS_LANG_DEFAULT')); $helper->default_form_language = $lang->id; $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0; $helper->identifier = $this->identifier; $helper->submit_action = 'submitModule'; $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; $helper->token = Tools::getAdminTokenLite('AdminModules'); $helper->tpl_vars = array( 'fields_value' => $this->getConfigFieldsValues(), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id ); return $helper->generateForm(array($fields_form)); } public function getConfigFieldsValues() { return array( 'blocksocial_facebook' => Tools::getValue('blocksocial_facebook', Configuration::get('BLOCKSOCIAL_FACEBOOK')), 'blocksocial_twitter' => Tools::getValue('blocksocial_twitter', Configuration::get('BLOCKSOCIAL_TWITTER')), 'blocksocial_rss' => Tools::getValue('blocksocial_rss', Configuration::get('BLOCKSOCIAL_RSS')), 'blocksocial_youtube' => Tools::getValue('blocksocial_youtube', Configuration::get('BLOCKSOCIAL_YOUTUBE')), 'blocksocial_google_plus' => Tools::getValue('blocksocial_google_plus', Configuration::get('BLOCKSOCIAL_GOOGLE_PLUS')), 'blocksocial_pinterest' => Tools::getValue('blocksocial_pinterest', Configuration::get('BLOCKSOCIAL_PINTEREST')), ); } public function hookdispalyNav($params){ return $this->hookDisplayFooter(); } Link to comment Share on other sites More sharing options...
bburrer77 Posted April 25, 2014 Share Posted April 25, 2014 this is also the format that note pad changed it too,,, I believe that might have something to do with it. this is in file directory /www/modules/blocksocial/blocksocial.php I am using filezilla to ftp in Link to comment Share on other sites More sharing options...
bburrer77 Posted April 25, 2014 Share Posted April 25, 2014 I did not make a copy of the file, I was not thinking it would do this. my silly mistake. Link to comment Share on other sites More sharing options...
vekia Posted April 25, 2014 Share Posted April 25, 2014 can you attach your file to pastebin.org it's totally unreadable here :/ Link to comment Share on other sites More sharing options...
bburrer77 Posted April 25, 2014 Share Posted April 25, 2014 I could just let you ftp into my site,,, would that be easier... I can send you my info in a private msg? Link to comment Share on other sites More sharing options...
bburrer77 Posted April 25, 2014 Share Posted April 25, 2014 I have pasted it into pastebin, under the username bburrer77.... but like I say, if it is easier to let you ftp into the site, I can do that. Link to comment Share on other sites More sharing options...
bburrer77 Posted April 25, 2014 Share Posted April 25, 2014 here is the url for pastebin http://pastebin.com/qkvBuQ2d Link to comment Share on other sites More sharing options...
bburrer77 Posted April 25, 2014 Share Posted April 25, 2014 I fixed it,,, don't worry about it,,,, thank you though Link to comment Share on other sites More sharing options...
Cale Posted May 2, 2014 Share Posted May 2, 2014 use this in your global.css Vekia, you are just awesome, thank you so much ! Link to comment Share on other sites More sharing options...
vekia Posted May 2, 2014 Share Posted May 2, 2014 thank you for your kind words and of course: you're welcome :-) 1 Link to comment Share on other sites More sharing options...
bburrer77 Posted May 2, 2014 Share Posted May 2, 2014 before last closing bracket (in module .php file) add this: public function hookdispalyNav($params){ return $this->hookDisplayFooter(); } then go to modules > positions click on transplant button and transplant social block module to this hook. Every time I try to do this, it gives me a http 500 error... I am not sure what I am doing wrong. Can anyone help. Link to comment Share on other sites More sharing options...
Cale Posted May 2, 2014 Share Posted May 2, 2014 (edited) Every time I try to do this, it gives me a http 500 error... I am not sure what I am doing wrong. Can anyone help. Where did you insert the code ? You have to insert it in the module path / module.php file ? (i.e. : www/prestashop/blocksocial/blocksocial.php ) and copy it between two other functions. Be carefull to correct the function of vekia, there is an error in the name (hookDisplayNav not hookdispalyNav) Edited May 2, 2014 by Cale (see edit history) 1 Link to comment Share on other sites More sharing options...
bburrer77 Posted May 2, 2014 Share Posted May 2, 2014 Where did you insert the code ? You have to insert it in the module path / module.php file ? (i.e. : www/prestashop/blocksocial/blocksocial.php ) and copy it between two other functions. Be carefull to correct the function of vekia, there is an error in the name (hookDisplayNav not hookdispalyNav) that is where I put it,, but I will try again, with the corrected ( hookDisplayNav) I put it at the end like Vekia said,,,, just before the last } Link to comment Share on other sites More sharing options...
bburrer77 Posted May 2, 2014 Share Posted May 2, 2014 www/modules/blocksocial/blocksocial.php Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2014 Share Posted May 3, 2014 it will be much easier if you will show your code after modifications. Link to comment Share on other sites More sharing options...
aguaycafe Posted May 9, 2014 Share Posted May 9, 2014 Buenas tardesEstoy trabajando con prestashop 1.6 y la plantilla que trae por defecto. He hecho unas paginasde informacion en css y he modificado en el modulo blockpermanentlinks el archivo blockpermanentlinks-header.tpl y he añadido el modulo Enlaces Permanentes al bloque displayNav obteniendo esto que te muestro. Como ves sale Servicios Profesionales Partners y Preguntas Frecuentes, Como puedo hacer para ponerle el mismo color y centrarlo igual que Contacto Español e Iniciar Sesion Gracias Jose Luis Link to comment Share on other sites More sharing options...
ashadweb Posted May 12, 2014 Share Posted May 12, 2014 (edited) Hi I didn't understand this part? which hook? can you please help me? http://i58.tinypic.com/28tgaq0.jpg Also I have added the below code to modules/blocksocial/blocksocial.tpl After </ul> public function hookdispalyNav($params){ return $this->hookDisplayFooter(); } </section> Is this correct? I want to show the social icons at the top of the page. example: http://i62.tinypic.com/t0rxo4.jpg website: bit.ly/1pzlXoW Thanks ################################################################### before last closing bracket (in module .php file) add this: public function hookdispalyNav($params){ return $this->hookDisplayFooter(); } then go to modules > positions click on transplant button and transplant social block module to this hook. Edited May 12, 2014 by ashadweb (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2014 Share Posted May 12, 2014 Hi I didn't understand this part? which hook? can you please help me? http://i58.tinypic.com/28tgaq0.jpg 1) from first dropdown select module 2) from second dropdown select "dispalyNav" Link to comment Share on other sites More sharing options...
ashadweb Posted May 13, 2014 Share Posted May 13, 2014 It says "This module cannot be transplanted to this hook." Please see the screenshot 1) from first dropdown select module 2) from second dropdown select "dispalyNav" Link to comment Share on other sites More sharing options...
vekia Posted May 13, 2014 Share Posted May 13, 2014 i just thought that you already included: public function hookdispalyNav($params){ return $this->hookDisplayFooter(); } to module .php file before last closing bracket } if not, do this, it's necessary Link to comment Share on other sites More sharing options...
aguaycafe Posted May 13, 2014 Share Posted May 13, 2014 Muchas gracias Vekia http://mypresta.eu/en/art/prestashop-16/block-top-menu-displaynav.html . pero no es eso lo que queria ya lo tengo te lo muestro Link to comment Share on other sites More sharing options...
aguaycafe Posted May 14, 2014 Share Posted May 14, 2014 Se pueden crear formularios de contacto diferentes en prestashop 1.6 ? Gracias Link to comment Share on other sites More sharing options...
ecaholicz Posted May 14, 2014 Share Posted May 14, 2014 @Nando112 hi nando, pretty nice modification you've made it for top menu. can you share any tutorial how to make it like your's? @Vekia can you tell us how to modified like just nando did? Please Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2014 Share Posted May 14, 2014 i think that everything is well described in post #6 http://www.prestashop.com/forums/topic/318911-solved-social-block-in-displaynav-hook/?p=1613793 Link to comment Share on other sites More sharing options...
ecaholicz Posted May 14, 2014 Share Posted May 14, 2014 i think that everything is well described in post #6 http://www.prestashop.com/forums/topic/318911-solved-social-block-in-displaynav-hook/?p=1613793 thanks for the reply vekia, but.. i mean modication for the block top menu, not for the social block. im sorry for the mistake. Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2014 Share Posted May 14, 2014 im lost, can you point me to the right direction? about what modification of block top menu you're talking? Link to comment Share on other sites More sharing options...
ecaholicz Posted May 14, 2014 Share Posted May 14, 2014 im lost, can you point me to the right direction? about what modification of block top menu you're talking? im already attach the picture. thanks again vekia you're really nice person Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2014 Share Posted May 14, 2014 i hae no idea how he changed it but it can be solved with guide that i released: http://mypresta.eu/en/art/prestashop-16/block-top-menu-displaynav.html then with css styles you can change size of the menu .sf-menu > li > a { font: 600 18px/22px "Open Sans", sans-serif; text-transform: uppercase; color: #484848; display: block; padding: 2px; border-bottom: 3px solid #e9e9e9; } (i changed padding to 2px;) you can also remove backgrunds etc. then you will need to transplant also block cart module there .... a lot of small customizations related to each module in displayNav Link to comment Share on other sites More sharing options...
ecaholicz Posted May 14, 2014 Share Posted May 14, 2014 i hae no idea how he changed it but it can be solved with guide that i released: http://mypresta.eu/en/art/prestashop-16/block-top-menu-displaynav.html then with css styles you can change size of the menu .sf-menu > li > a { font: 600 18px/22px "Open Sans", sans-serif; text-transform: uppercase; color: #484848; display: block; padding: 2px; border-bottom: 3px solid #e9e9e9; } (i changed padding to 2px;) you can also remove backgrunds etc. then you will need to transplant also block cart module there .... a lot of small customizations related to each module in displayNav sorry for the late reply, im already done the suggestion you gave to me. but i still confused how to align the menu to the center just like nando did. if you have spare of time, please take a look my progress. http://rara-store.com Link to comment Share on other sites More sharing options...
ashadweb Posted May 16, 2014 Share Posted May 16, 2014 Hi Which .module.php? where is it please? even here it says .module.php but where? http://www.prestashop.com/forums/topic/318911-solved-social-block-in-displaynav-hook/?p=1613793 i just thought that you already included: public function hookdispalyNav($params){ return $this->hookDisplayFooter(); } to module .php file before last closing bracket } if not, do this, it's necessary Link to comment Share on other sites More sharing options...
ashadweb Posted May 16, 2014 Share Posted May 16, 2014 I;m confused after reading all these 1. Where should I add this code? module .php means which .php? 2. After above Transplant module Which module to select? Hook into what to select? Hi Which .module.php? where is it please? even here it says .module.php but where? http://www.prestashop.com/forums/topic/318911-solved-social-block-in-displaynav-hook/?p=1613793 Link to comment Share on other sites More sharing options...
ashadweb Posted May 16, 2014 Share Posted May 16, 2014 Found it http://www.prestashop.com/forums/topic/250220-free-module-social-network-links-facebook-twitter-youtube-google-other/ Thanks Link to comment Share on other sites More sharing options...
aguaycafe Posted May 27, 2014 Share Posted May 27, 2014 Hello good morningI am trying to programmatically change the module position paypal fast purchase and can notShow me where it goes now in paypal photoWould be the correct way to put it where I show on the picture paypal_1thanks Link to comment Share on other sites More sharing options...
vekia Posted May 27, 2014 Share Posted May 27, 2014 Hello good morning I am trying to programmatically change the module position paypal fast purchase and can not Show me where it goes now in paypal photo Would be the correct way to put it where I show on the picture paypal_1 thanks you have to transplant module to displayProductActions hook, at the moment it's attached to displayFooterProduct hook. Link to comment Share on other sites More sharing options...
aguaycafe Posted May 27, 2014 Share Posted May 27, 2014 Hello VekiaIt says "This module cannot be transplanted to this hook." Please see the screenshot Link to comment Share on other sites More sharing options...
vekia Posted May 27, 2014 Share Posted May 27, 2014 okay, so open module .php file and insert there code like: public function hookProductActions() { $content = (!$this->useMobile()) ? $this->renderExpressCheckoutButton('product') : null; return $content.$this->renderExpressCheckoutForm('product'); } do it before last closing bracket Link to comment Share on other sites More sharing options...
aguaycafe Posted May 28, 2014 Share Posted May 28, 2014 (edited) Good morning I can not find path thanks Edited June 2, 2014 by aguaycafe (see edit history) Link to comment Share on other sites More sharing options...
aguaycafe Posted May 29, 2014 Share Posted May 29, 2014 (edited) okay, so open module .php file and insert there code like:public function hookProductActions(){$content = (!$this->useMobile()) ? $this->renderExpressCheckoutButton('product') : null;return $content.$this->renderExpressCheckoutForm('product');}do it before last closing bracketwhich file is to be modified?Thank you Edited June 2, 2014 by aguaycafe (see edit history) Link to comment Share on other sites More sharing options...
Javi Ferrer Posted July 18, 2014 Share Posted July 18, 2014 (edited) Guys, Where is "Transplant Module" button in Prestashop 1.6? I can't locate it in my dashboard. Edited July 18, 2014 by Valentin Yonte (see edit history) Link to comment Share on other sites More sharing options...
Javi Ferrer Posted July 18, 2014 Share Posted July 18, 2014 (edited) PROBLEM SOLVED. I answer myself. I ocate the module button, but the spanish translation of this one, don't describe the action correctly. "Transplant Module" in spanish version of Prestashop 1.6 say "Insertar un Hook". Edited July 18, 2014 by Valentin Yonte (see edit history) Link to comment Share on other sites More sharing options...
sinoland Posted August 24, 2014 Share Posted August 24, 2014 (edited) Hi Vekia, Thank you for your solution. There is a typo and the code should be public function hookdisplayNav($params){return $this->hookDisplayFooter();} instead of public function hookdispalyNav($params){return $this->hookDisplayFooter();} Oops, bburrer77 already pointed out the error. Edited August 24, 2014 by sinoland (see edit history) Link to comment Share on other sites More sharing options...
jaychennai Posted October 11, 2014 Share Posted October 11, 2014 interesting so by this way any module can be transplanted any where Link to comment Share on other sites More sharing options...
mkli73 Posted October 12, 2014 Share Posted October 12, 2014 http://www.threew.es I have tried changing the line, public function hookDisplayNav($params){ return $this->display(__FILE__, 'blocksocial.tpl'); } but I cant see the icons, I hope you can help me Hello all I have tried the above code and I am recieving the following msg from my page "No template found for module Module: here is the link of my shop http://www.pandora-web-box.info/avenue-shop/index.php Could you help me? Thanks Marina Link to comment Share on other sites More sharing options...
Eutanasio Posted December 17, 2014 Share Posted December 17, 2014 Thanks for this tip! but I have a problem, it only appears when I unable cache and force compilation, otherwise it disappears. How to fix this? Link to comment Share on other sites More sharing options...
lbinello Posted February 6, 2015 Share Posted February 6, 2015 Good morning, I'm trying to position a module (Quick Search Block) in the default theme using the "edit" button but I receive an "Internal server error" (the "unlock" option works). In the error.log there are no sign of this error and "write-modify" permissions are set. Could you plese give me any ideas where to search the error or to solve it? Thank you Link to comment Share on other sites More sharing options...
Recommended Posts