Jump to content

Edit History

ba609

ba609

Quote

Try override function on class Context 


public function getDevice()
    {
        static $device = null;

        if ($device === null) {
            if ($this->isTablet()) {
                //$device = Context::DEVICE_TABLET;
 				$device = Context::DEVICE_MOBILE;
            } elseif ($this->isMobile()) {
                $device = Context::DEVICE_MOBILE;
            } else {
                $device = Context::DEVICE_COMPUTER;
            }
        }

        return $device;
    }

 

Hi phinq1910,

file to edit, .....prestashop/classes/Context.php

ThX

ba609

ba609

Quote

Try override function on class Context 


public function getDevice()
    {
        static $device = null;

        if ($device === null) {
            if ($this->isTablet()) {
                //$device = Context::DEVICE_TABLET;
 				$device = Context::DEVICE_MOBILE;
            } elseif ($this->isMobile()) {
                $device = Context::DEVICE_MOBILE;
            } else {
                $device = Context::DEVICE_COMPUTER;
            }
        }

        return $device;
    }

 

Hi phinq1910,

can you send me the name of file to edit ?

ThX

×
×
  • Create New...