helsinkisisu Posted October 3, 2022 Share Posted October 3, 2022 A search revealed this topic has been touched on before, but not specifically for this. Well...not for PS1.7. Firstly, flags don't appear in the language selector in mobile layout, only text. Looking at the theme code, they should, but don't. However, rather than try to fix this, I would much prefer that both the dropdown selector and text were replaced entirely by just inline flags (two on my site). Having the flags next to each other is by far the most obvious and convenient way for folks to change language, as well as for them to immediately see that they can change it and what's available. I would want this for full desktop and mobile layouts. Can anybody help me achieve this? I'm not a coder, but am fully at home with making changes to files. 🙂 Link to comment Share on other sites More sharing options...
ComGrafPL Posted October 3, 2022 Share Posted October 3, 2022 Have you tried this: https://www.prestasoo.com/blog/display-flags-in-the-language-switcher-prestashop-1-6-1-7.html Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 3, 2022 Author Share Posted October 3, 2022 17 minutes ago, ComGrafPL said: Have you tried this: https://www.prestasoo.com/blog/display-flags-in-the-language-switcher-prestashop-1-6-1-7.html Thanks. I had missed that one. However, I just tried the inline instruction and the language selector completely disappeared. Link to comment Share on other sites More sharing options...
ps8modules Posted October 3, 2022 Share Posted October 3, 2022 (edited) Hi, I created a mini free module 😉 Prestashop 1.7.1.0 > Edited October 3, 2022 by 4you.software (see edit history) 3 Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 3, 2022 Author Share Posted October 3, 2022 1 hour ago, 4you.software said: Hi, I created a mini free module 😉 Prestashop 1.7.1.0 > I gave it a try, but it didn't work with my template. And the module settings wouldn't save. Link to comment Share on other sites More sharing options...
ps8modules Posted October 3, 2022 Share Posted October 3, 2022 (edited) Each template has different styles, javascripts and hooks. I don't know your template. The style of the module can be modified. Just turn on debug mode and insert the error here. Previous changes are reverted? Is the module attached to the correct hook of your template? Is the ps_languageselector module disabled? Edited October 3, 2022 by 4you.software (see edit history) 1 Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 4, 2022 Author Share Posted October 4, 2022 8 hours ago, 4you.software said: Each template has different styles, javascripts and hooks. I don't know your template. The style of the module can be modified. Just turn on debug mode and insert the error here. Previous changes are reverted? Is the module attached to the correct hook of your template? Is the ps_languageselector module disabled? Yeah, hook position.... 🙄😵 Worked well this morning after I'd had sleep and actually set the hook. Thanks! Link to comment Share on other sites More sharing options...
ps8modules Posted October 4, 2022 Share Posted October 4, 2022 Good work. I mentioned it in the description, it just wanted to sleep 😉 Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 4, 2022 Author Share Posted October 4, 2022 14 minutes ago, 4you.software said: Good work. I mentioned it in the description, it just wanted to sleep 😉 OK, I spoke a little soon. When I checked it earlier, I checked on desktop and a resized browser. It worked fine on both. However, when I now checked on an actual phone browser (Chrome and Edge), there was no selector. I cleared data and PS cache, but still nothing. 😕 Link to comment Share on other sites More sharing options...
ps8modules Posted October 4, 2022 Share Posted October 4, 2022 As I wrote, each template uses different css, js, tpl. The mobile view is driven by JavaScript, which hides the desktop id and displays the mobile id. Can you write what template you have? Everything is functional in the classic template. Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 4, 2022 Author Share Posted October 4, 2022 Sure. I'm using the Bizkick theme. Link to comment Share on other sites More sharing options...
ps8modules Posted October 4, 2022 Share Posted October 4, 2022 Ok, upload here two files * ./themes/your_theme/templates/_partials/header.tpl * ./themes/your_theme/modules/ps_languageselectortemplates/ps_languageselectortemplates.tpl Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 4, 2022 Author Share Posted October 4, 2022 ps_languageselector.tplheader.tpl Done. 👍🏻 Link to comment Share on other sites More sharing options...
ps8modules Posted October 4, 2022 Share Posted October 4, 2022 Everything is alright. Send me the url address of the eshop for checking in a private message. Link to comment Share on other sites More sharing options...
ps8modules Posted October 4, 2022 Share Posted October 4, 2022 Is the original Prestashop module disabled or uninstalled? Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 4, 2022 Author Share Posted October 4, 2022 When I tested, I disabled the original (and mobile). Link to comment Share on other sites More sharing options...
ps8modules Posted October 4, 2022 Share Posted October 4, 2022 (edited) Error is in js-top-menu-bottom div => module PM_AdvancedTopMenu. Another module changes the display behavior of the mobile menu and the hook. It's not my module's fault, it's the module's fault PM_AdvancedTopMenu. Edited October 4, 2022 by 4you.software (see edit history) Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 4, 2022 Author Share Posted October 4, 2022 OK, thanks. Is there an easy way to track this down, or is the best route via the module developer? It's a crucial module, so there's no doing without it. Link to comment Share on other sites More sharing options...
ps8modules Posted October 4, 2022 Share Posted October 4, 2022 Note that when you open the Menu on mobile, the footer also disappears. When unzipped, it overlaps the top as well, instead of moving it down. That Menu module has many bugs. Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 9, 2022 Author Share Posted October 9, 2022 On 10/4/2022 at 5:36 PM, 4you.software said: Note that when you open the Menu on mobile, the footer also disappears. When unzipped, it overlaps the top as well, instead of moving it down. That Menu module has many bugs. This is the highest rated and reviewed menu module in the store. However, it's now out of support cover (although still the latest version), so I'm changing to an alternative (Mega Menu Pro). Typically, although it looks like it fixes this issue, I discovered a major bug in the backend to do with language selection (also present in their backend demo site). It's currently impossible to create multi-language menus in the module. I'm now waiting for them to fix their demo site so I can get an updated package... 1 Link to comment Share on other sites More sharing options...
ps8modules Posted October 9, 2022 Share Posted October 9, 2022 I'm also happy for the other users of the Mega Menu module that you are solving it. Good work. Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 12, 2022 Author Share Posted October 12, 2022 On 10/9/2022 at 8:03 AM, 4you.software said: I'm also happy for the other users of the Mega Menu module that you are solving it. Good work. Now that the new menu is in place, your module is working well, thanks. 👍🏻 I have also discovered that the problems you mentioned above appear to be with the template. At least, Advanced Menu has now been completely uninstalled. I really do hate that the only remaining thing in the template mobile menu is the language selector. I would much prefer to get rid of that mobile menu altogether and move the language selector out to a permanent visible position (same as search, cart, login). There is a very strong arguement that the language selector is visually more important than both search and login. Is it possible to achieve this? 1 Link to comment Share on other sites More sharing options...
ps8modules Posted October 12, 2022 Share Posted October 12, 2022 Hi. Yes, it can be achieved. A few modifications are needed in the template and the mobile view toggle in JavaScript. Link to comment Share on other sites More sharing options...
helsinkisisu Posted October 12, 2022 Author Share Posted October 12, 2022 (edited) OK, I've never edited JS files. Perhaps it would be better to buy the pro version of the template and get the developer to do it. EDIT: I just looked at the developer's demo for the template and the menu and template work perfectly together. So, maybe Advanced Menu stuffed up stuff and left it there after uninstall... 🙄 Edited October 12, 2022 by helsinkisisu (see edit history) 1 Link to comment Share on other sites More sharing options...
ps8modules Posted October 12, 2022 Share Posted October 12, 2022 Hi. Well, that's what you often experience here. Anything called "Advaced" or "Pro" is not allowed in my customers' eshops. The fact that TPL modules change files during installation and do not revert during uninstallation is also common recently. When I go to edit someone's e-shop and come across a "Page builder", I run away quickly. Then people are surprised that the fixes are more expensive than some "Pro" module cost, and they don't realize that it takes several hours to study and examine tens of thousands of lines of pasted code. There are also many agencies that employ freelancers, let them create a module, and the freelancer doesn't cooperate with them anymore, and then they don't understand the code themselves. So much for my knowledge. Link to comment Share on other sites More sharing options...
Prestachio Posted February 20, 2023 Share Posted February 20, 2023 On 10/4/2022 at 1:25 AM, ps8moduly.cz said: Hi, I created a mini free module 😉 Prestashop 1.7.1.0 > Hi, is that module still available? I only see "Sorry, we can't show this content because you do not have permission to see it.". Thx! Link to comment Share on other sites More sharing options...
ps8modules Posted February 20, 2023 Share Posted February 20, 2023 Hi. The module is no longer available and its further distribution is prohibited 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