Unknown file by the name of shoppica without an extension in \catalog\model

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeUnknown file by the name of shoppica without an extension in \catalog\model

This topic has been marked as not resolved.

Hello,

Would appreciate if anyone could advise what is the file meant for and if it can be deleted away.
Thank you!

model = $model;
}

public function getModel()
{
return $this->model;
}

public function __set($key, $value)
{
$this->set($key, $value);
}

public function __get($key)
{
return $this->get($key);
}

public function __isset($key)
{
return $this->has($key);
}

public function get($key)
{
return (isset($this->data[$key]) ? $this->data[$key] : null);
}

public function set($key, $value)
{
$this->data[$key] = $value;
}

public function has($key)
{
return isset($this->data[$key]);
}
}

class Browser
{
public static function detect()
{
$userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);

if (preg_match(‘/opera/’, $userAgent)) {
$name = ‘opera’;
}
elseif (preg_match(‘/webkit/’, $userAgent)) {
$name = ‘safari’;
}
elseif (preg_match(‘/msie/’, $userAgent)) {
$name = ‘msie’;
}
elseif (preg_match(‘/mozilla/’, $userAgent) && !preg_match(‘/compatible/’, $userAgent)) {
$name = ‘mozilla’;
}
else {
$name = ‘unrecognized’;
}

// What version?
if (preg_match(‘/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/’, $userAgent, $matches)) {
$version = $matches[1];
}
else {
$version = ‘unknown’;
}

// Running on what platform?
if (preg_match(‘/linux/’, $userAgent)) {
$platform = ‘linux’;
}
elseif (preg_match(‘/macintosh|mac os x/’, $userAgent)) {
$platform = ‘mac’;
}
elseif (preg_match(‘/windows|win32/’, $userAgent)) {
$platform = ‘windows’;
}
else {

April 10, 2012 at 8:27 pm #7917

Attaching the file as some of the codes disappeared after posting them.

April 10, 2012 at 8:29 pm #7918

Hi,

There shouldn’t be such a file in this folder. Maybe you are talking about catalog/model/shoppica/utils.php?

You can’t attach files, which end with .php. Files with .php extension are not allowed to be supplied as attachments. You should .zip the file first.

April 11, 2012 at 1:39 pm #7947

Hi TB Support, please refer to the attached zip file.

Thank you!

April 11, 2012 at 6:18 pm #7979

Hi,

As we suggested this file is utils.php.

We don’t know, how the name got different. You could try renaming it.

You can also try to reinstall Shoppica, just to be sure you haven’t missed something else.

Best,
ThemeBurn team

April 12, 2012 at 1:30 pm #8015
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.