Jump to content

Edit History

MaXi32

MaXi32

Can anyone shed more light to this post especially on the ps 1.7.

 

  

On 2/18/2020 at 9:06 PM, Joyplaz said:

Is anybody else getting false positives with this function?


$this->context->smarty->assign('isMobile', $this->context->isMobile());

When I var_dump $isMobile in my tpl file, sometimes on desktop it shows true and on mobile (from my chrome dev tools) shows false.  Then randomly after a bunch of refreshes it will work.

FYI, I'm using prestashop 1.7

 this one is working. thanks a lot

MaXi32

MaXi32

Can anyone shed more light to this post especially on the ps 1.7.

 

  

On 2/18/2020 at 9:06 PM, Joyplaz said:

Is anybody else getting false positives with this function?


$this->context->smarty->assign('isMobile', $this->context->isMobile());

When I var_dump $isMobile in my tpl file, sometimes on desktop it shows true and on mobile (from my chrome dev tools) shows false.  Then randomly after a bunch of refreshes it will work.

FYI, I'm using prestashop 1.7

 this one is working.

MaXi32

MaXi32

Can anyone shed more light to this post especially on the ps 1.7.

×
×
  • Create New...