duplicate (2nd) search box for mobile screensize

ThemeBurn SupportForumsOpenCart ThemesBurnEngineduplicate (2nd) search box for mobile screensize

This topic has been marked as resolved.

Hello Themeburn,

For my website I need a duplicate from the searchbox (with working live search).
1 search box, for regular screensize and 1 search box for mobile screensize
(hide/ show the correct searchbox with css).

The position from the searchbox is on mobile screensize different than normal screen and I can`t achieve this with only css. Also won`t do this with javascript (resize handler).

What I have tried:
1. I made a copie from the content inside the search slot (header.tpl)
> the live search functionality is not working for this copie

2. I changed the id from input to filter_keyword2

3. Added in live_search.js $(\”#filter_keyword2\”).typeahead({
and in common.js $(\’#filter_keyword2\’).bind(\’keydown\’, function(e) {
> nothing is happening

It looks like that all what I add/ remove in file: live_search.js is not do anyting.
Also not when I de-install and re-install the live search module.

Do you know what i`m missing and how i can get a second, working search box?

You can find both searchboxes on:

If you need some credentials I can provide you.

Thanks alot and best regards!

  • This reply was modified 2369 days ago by  ultimatia.
October 23, 2017 at 2:03 pm #62141

Update: resolved
I found the solution.

The file I was editing was not the correct one and wasn`t doing anything.

I was editing file:
../public_html/BurnEngine/extension/live_search/catalog/view/javascript/live_search.js

While the correct file is: ../public_html/system/vendor/BurnEngine/extension/live_search/catalog/view/javascript/live_search.js

The old file (path) is probably remaining after a new installation/ update to newer version.

BR!

October 23, 2017 at 7:11 pm #62143

Hi,

Glad to see you have managed to solve your problem. I think you can still use only CSS to move the search bar from the green desktop header to the grey under header row :)

BR,
ThemeBurn team

October 23, 2017 at 11:12 pm #62150
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.