cyjambo Posted March 26, 2013 Share Posted March 26, 2013 Hi everyone, I cannot seem to be able to find any information about this at all. So I am asking it here, maybe someone knows the answer. There is a default mobile theme in prestashop 1.5. I have 1.5.3.1 and it works perfectly. The only thing I cannot find is the language and currency block. Is it possible to somehow add these to the mobile version of the theme? I have looked in Module positions but I cannot see a way to do it. Has anyone done it before? Could you share it please? Or is it not possible at the moment? Thanks a lot and keep up the good work! Link to comment Share on other sites More sharing options...
pel024 Posted May 11, 2013 Share Posted May 11, 2013 Hi, did you find a solution to this? I'd like to know how to add these modules also. Link to comment Share on other sites More sharing options...
cyjambo Posted May 11, 2013 Author Share Posted May 11, 2013 Hi, No, unfortunately not. I did not have much time to check around and nobody seems to need this... Link to comment Share on other sites More sharing options...
joseantgv Posted May 27, 2013 Share Posted May 27, 2013 I have edit file blocklanguages.php: public function install() { return (parent::install() && $this->registerHook('top') && $this->registerHook('header') && $this->registerHook('displayMobileTop')); } public function hookdisplayMobileTop($params) { if (!$this->_prepareHook($params)) return; $this->context->controller->addCSS($this->_path.'blocklanguages.css', 'all'); return $this->display(__FILE__, 'blocklanguages.tpl'); } It's necessary to edit some style. Link to comment Share on other sites More sharing options...
jlixerkun Posted February 4, 2014 Share Posted February 4, 2014 I have edit file blocklanguages.php: public function install() { return (parent::install() && $this->registerHook('top') && $this->registerHook('header') && $this->registerHook('displayMobileTop')); } public function hookdisplayMobileTop($params) { if (!$this->_prepareHook($params)) return; $this->context->controller->addCSS($this->_path.'blocklanguages.css', 'all'); return $this->display(__FILE__, 'blocklanguages.tpl'); } It's necessary to edit some style. Hi joseantgv. I can see the logic here. But after editing the blocklanguages.php, i still get nothing on the mobile theme. You say i need to edit some style... I Still can't find the block in FO Please shed a light on this subject Thanks in advance 1 Link to comment Share on other sites More sharing options...
joseantgv Posted February 4, 2014 Share Posted February 4, 2014 Hi joseantgv. I can see the logic here. But after editing the blocklanguages.php, i still get nothing on the mobile theme. You say i need to edit some style... I Still can't find the block in FO Please shed a light on this subject Thanks in advance Hi! I think I forgot to say that's it's necessary to insert new hook at Modules > Positions, Transplant a module Link to comment Share on other sites More sharing options...
jlixerkun Posted February 4, 2014 Share Posted February 4, 2014 WOW! thanks for your prompt reply. I have a problem, though. I tried transplanting the language block to the displayMobileTop hook, which i found in the mobile header.tpl. But i can't find that hook in the transplant module drop-down to hook into. I did however find the displayMobileTopSitemap hook, but it says module cannot be transplanted into hook Link to comment Share on other sites More sharing options...
joseantgv Posted February 4, 2014 Share Posted February 4, 2014 WOW! thanks for your prompt reply. I have a problem, though. I tried transplanting the language block to the displayMobileTop hook, which i found in the mobile header.tpl. But i can't find that hook in the transplant module drop-down to hook into. I did however find the displayMobileTopSitemap hook, but it says module cannot be transplanted into hook Hello! I answered you from memory, and because I thought that I have forgotten this step, so let me check it. Link to comment Share on other sites More sharing options...
joseantgv Posted February 7, 2014 Share Posted February 7, 2014 WOW! thanks for your prompt reply. I have a problem, though. I tried transplanting the language block to the displayMobileTop hook, which i found in the mobile header.tpl. But i can't find that hook in the transplant module drop-down to hook into. I did however find the displayMobileTopSitemap hook, but it says module cannot be transplanted into hook Hi and apologies for the delay, but i'm too busy during working days! Ok so it's not necessary to transplant module, but to reset it! Just edit module files as I said in previous posts and reset it: 1 Link to comment Share on other sites More sharing options...
Goalmarketing Posted June 16, 2016 Share Posted June 16, 2016 Hi, can you send this image again? Thanks Bruno Azevedo Hi and apologies for the delay, but i'm too busy during working days! Ok so it's not necessary to transplant module, but to reset it! Just edit module files as I said in previous posts and reset it: This Image, is possible to show again? Link to comment Share on other sites More sharing options...
Recommended Posts