Jump to content

Language block and currency block not showing on Mobile Theme - prestashop 1.5.3.1


Recommended Posts

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

  • 1 month later...
  • 3 weeks later...

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

  • 8 months later...

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

  • Like 1
Link to comment
Share on other sites

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

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

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

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:

 

BZzDeYp.png

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

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:

 

BZzDeYp.png

 

 

This Image, is possible to show again?

Link to comment
Share on other sites

×
×
  • Create New...