Problem with live search module

ThemeBurn SupportForumsOpenCart ThemesKiddos OpenCart ThemeProblem with live search module

This topic has been marked as not resolved.

Hello,

for some period I used different than your Live Search Extension, but now when I enable it back, the images are not showing in the search output.

Is there any cache, that I need to clean ( I clean the theme and extension cache), or ?

October 3, 2017 at 2:03 pm #61913
October 4, 2017 at 11:52 am #61922

Hello,
any update here?

October 9, 2017 at 5:48 pm #61968

Hello,

I’m still working on that problem.
We are using separate domain for the static (images) content and it looks like when that vqmod is enabled, the live search does not display the images.

I tracked down the problem to this variable “image_serve_domain”, so I defined it in system/vendor/BurnEngine/config/engine.php

But then I had problem with line 458 from system/vendor/BurnEngine/library/Context.php
return ‘http:’ . (TB_RequestHelper::isRequestHTTPS() ? ‘s’ : ”) . ‘//’ . $this->engine_config['image_serve_domain'] . ‘image/’;

That was returning wrong url – http://s/ or something like that.
I change it to
return ‘https://’ . $this->engine_config['image_serve_domain'] . ‘/image/’;

I’m not sure if I did not break something else.

October 23, 2017 at 1:32 pm #62139

Hi,

you can try to replace the getUmageUrl function with the following version:

    public function getImageUrl($store_domain = false)
    {
        if (!$this->engine_config['image_serve_domain'] || $store_domain) {
            return $this->base_httpsIf . 'image/';
        }

        $url = $this->engine_config['image_serve_domain'];

        if (strpos($this->engine_config['image_serve_domain'], 'http://') === 0 && TB_RequestHelper::isRequestHTTPS()) {
            $url = str_replace('http', 'https', $url);
        }

        return rtrim($url, '/') . '/image/';
    }

Now your `image_serve_domain setting` in system/vendor/BurnEngine/config/engine.php should work as expected. This fix will be included in the next theme updates too.

Regards,
ThemeBurn team

October 24, 2017 at 9:28 am #62158

Hi,

now the URLs are looking like:
https://popi.se/staticpopi.webactivity.eu/image/…

popi.se is the main domain
staticpopi.webactivity.eu is the domain defined in engine.php

October 24, 2017 at 11:14 am #62162
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.