Jump to content
Stroud Vaping

[solved] Search bar problem

Recommended Posts

Hi all,

 

Have recently set up my new shop using Prestashop and am quickly falling in love with it!

 

One hitch which is now driving me crazy though...when not logged in to the site the search bar decides to sit in the wrong place on the page. When logged in it sits where it should in the top centre of the page.

 

I've got a feeling this glitch has just happened since moving the shop from www.stroudvaping.co.uk/shop (where I had it for development purposes) to www.stroudvaping.co.uk (now it's live).

 

Below is a screenshot of the search bar location when logged out and logged in.

 

Huge thanks in advance for any help on this - it's driving me mad!

 

Luke - Stroud Vaping.

 

ss1.jpgss2.jpg

Share this post


Link to post
Share on other sites

it looks like search for "mobile" version. can you turn off mobile version in your back office? (only for a while - for test purposes)

Share this post


Link to post
Share on other sites

Ooh, interesting.

I have disabled it and the search bar seems to have returned to the normal location.

Any idea how I can get around this, as I would like to have a mobile version available?

Thanks,

Luke

Share this post


Link to post
Share on other sites

what version of ps you use? 1.5.4.1?

Share this post


Link to post
Share on other sites

sorry for late reply, i havent received notification that you replied here.

 

turn on mobile version in the preferences > themes settings.

 

then in the modules/blocksearch/blocksearch-top.tpl try with this:

{if !isset($hook_mobile)}

 

instead the

{if isset($hook_mobile)}

 

 

it's only for test purposes, but it might work well. let me know when you append changes.

Share this post


Link to post
Share on other sites

Hi,

Thanks for the reply.

Turned mobile theme back on and weirdly it returned to normal without changing any code!

Odd! But at least it's sorted! Will try the code change if it happens again!

Thanks again,

Luke - Stroud Vaping

www.stroudvaping.co.uk

Share this post


Link to post
Share on other sites

wow! great news dude!

so im going to mark this thread as [solved]

 

if you've got any questions related to this thread - now or in the future - feel free to continue discussion

 

regards!

  • Like 1

Share this post


Link to post
Share on other sites

Hi I'm having this issue as well, when i'm logged in and when i'm not. I've tried adding an '!' before isset but nothing changed. Do you have any other ideas on how to resolve this conflict? Thanks in advance.

 

Running PS Version 1.5.6.0

 

Ad

Share this post


Link to post
Share on other sites

i checked your website and it looks like youv'e got different problem.

i created test account (test@test / testtest) and search bar appears well even if im logged / unlogged.

Share this post


Link to post
Share on other sites

I believe it's sorted now, i forgot to take out that '!' before isset, which was giving priority to the mobile search bar. Thanks for your help Vekia.

 

Adam

Share this post


Link to post
Share on other sites

Hi, I'm having this same problem after testing my site from a mobile phone via wireless, the same network as my desktop.  it's clearly an issue with the hook_mobile returning the wrong value.  This is with the free leo_converse theme. Interestingly, if I actually USE the search, it goes to the correct place temporarily until I navigate to a different page. this is with prestashop 1.5.6.0

Share this post


Link to post
Share on other sites

Hi, I'm having this same problem after testing my site from a mobile phone via wireless, the same network as my desktop.  it's clearly an issue with the hook_mobile returning the wrong value.  This is with the free leo_converse theme. Interestingly, if I actually USE the search, it goes to the correct place temporarily until I navigate to a different page. this is with prestashop 1.5.6.0

can you share url, i will inspect sources of your shop

Share this post


Link to post
Share on other sites

http://innolasers.com/shop

 

The search bar moves location after logging in to the same account I had logged in with the phone, and it's only in the wrong location in non-https pages.

 

another oddity.. the site looks slightly different (different CSS) when viewed with https and not, and for example, mousing over the cart in the upper right behaves differently - there is no cart summary that appears without https, unless you just added something to the cart.

Edited by drlava (see edit history)

Share this post


Link to post
Share on other sites

Hi,

 

seems like i'm having the same problem... I activated mobile theme to work on it but the search bar is very erratic.

 

Tried the hack above but no luck. I've tried to modify the hook code in php file but nothing worked as well.

There's a trick there but i can't seem to be able to find it...

 

PS version 1.5.5

site : www.e-cig-shopping.com

Edited by OBDA (see edit history)

Share this post


Link to post
Share on other sites

this is how it looks right now:

XvtV1rP.png

so what doesn't work well there?

Share this post


Link to post
Share on other sites

The problem arose when I created an account, used the account via my mobile with responsive enabled, and then used the same account with my regular computer. 

 

What solved it was forcing ssl for the entire site.  It's not an optimal solution, but it gets around the bug temporarilty till it can be resolved.

Share this post


Link to post
Share on other sites

so what doesn't work well there?

 

Well, after some tries, it got back to original state (the one shown in the picture)... I've finally made no changes to anything... weird.

Anyway, i've found out why the mobile theme was not working properly as well. So now everything is quite fine.

In PS 1.5.5.0, CCC activated for JS and mobile theme are not really best friends ^^. I had to add manually each script in the mobile theme header.tpl and now mobile theme is ok on mobile devices.

As I understood, the searchbar in mobile theme should validate without need for a button, but one apears so i guess that the code 

{if isset($hook_mobile)}
is not working properly in some ways... Edited by OBDA (see edit history)

Share this post


Link to post
Share on other sites

Hello Vekia,

i would like to ask an information that maybe it's easy for you and Hard for me.

I just now recognize that with  advanced  Search Bar and Default search bar , both are not visible on mobile

While the search bar (that i do not like) of theme (it's not classic) search bar it's Visible even for mobile (name of search bar is tpnt search)

can you kindly instruct me where i can edit in order to show Search Bar even on Mobile with default Module ,  shop is www.cuscinettitop.com

Thanks

 

Regards

Maurice

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More