Stroud Vaping Posted June 11, 2013 Share Posted June 11, 2013 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. Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 it looks like search for "mobile" version. can you turn off mobile version in your back office? (only for a while - for test purposes) Link to comment Share on other sites More sharing options...
Stroud Vaping Posted June 11, 2013 Author Share Posted June 11, 2013 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 Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 what version of ps you use? 1.5.4.1? Link to comment Share on other sites More sharing options...
Stroud Vaping Posted June 11, 2013 Author Share Posted June 11, 2013 Yeah, version 1.5.4.1 Link to comment Share on other sites More sharing options...
Stroud Vaping Posted June 11, 2013 Author Share Posted June 11, 2013 Don't suppose anyone knows of a way around this? Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 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. Link to comment Share on other sites More sharing options...
Stroud Vaping Posted June 12, 2013 Author Share Posted June 12, 2013 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 Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 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! 1 Link to comment Share on other sites More sharing options...
adsmar Posted October 21, 2013 Share Posted October 21, 2013 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 Link to comment Share on other sites More sharing options...
vekia Posted October 21, 2013 Share Posted October 21, 2013 what theme? can you share url please? Link to comment Share on other sites More sharing options...
adsmar Posted October 21, 2013 Share Posted October 21, 2013 Hi, thanks for getting back so quick. Blackhawk 1.3 - http://www.metalguardian.co.uk/ Link to comment Share on other sites More sharing options...
vekia Posted October 21, 2013 Share Posted October 21, 2013 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. Link to comment Share on other sites More sharing options...
adsmar Posted October 22, 2013 Share Posted October 22, 2013 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 Link to comment Share on other sites More sharing options...
drlava Posted October 31, 2013 Share Posted October 31, 2013 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 Link to comment Share on other sites More sharing options...
vekia Posted October 31, 2013 Share Posted October 31, 2013 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 Link to comment Share on other sites More sharing options...
drlava Posted October 31, 2013 Share Posted October 31, 2013 (edited) 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 October 31, 2013 by drlava (see edit history) Link to comment Share on other sites More sharing options...
OBDA Posted November 6, 2013 Share Posted November 6, 2013 (edited) 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 November 6, 2013 by OBDA (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 this is how it looks right now: so what doesn't work well there? Link to comment Share on other sites More sharing options...
drlava Posted November 6, 2013 Share Posted November 6, 2013 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. Link to comment Share on other sites More sharing options...
OBDA Posted November 6, 2013 Share Posted November 6, 2013 (edited) 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 November 6, 2013 by OBDA (see edit history) Link to comment Share on other sites More sharing options...
Maurice Posted January 9, 2020 Share Posted January 9, 2020 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now