OzzyM Posted May 13, 2022 Posted May 13, 2022 Hello! I think I ran into a bug in Faceted Search module. My product stock filter looks like this (Im only using 1 language in my shop, Polish): (Niedostepne = Unavailable, W magazynie = In stock) So I'm getting proper fields in Polish, but there's also a random extra field and I've got no clue where is it coming from. Ive checked translations panel and while there are options of translating "In stock" and "Unavailable", there's no such field as "Available". Any ideas what might be wrong and how to fix it and remove the extra field? I'm using Presta 1.7.8.5 with ps_facetedsearch v3.8.0. 1 Share this post Link to post Share on other sites More sharing options...
nrsoft Posted May 16, 2022 Posted May 16, 2022 Hello, I have exactly the same issue since migrating my (French) store from 1.7.6.x to 1.7.8.5. Still looking into it but if anyone else has found the solution please let us know. Thanks Nicolas 1 Share this post Link to post Share on other sites More sharing options...
Temerario Posted May 20, 2022 Posted May 20, 2022 Somebody resolve this problem? Share this post Link to post Share on other sites More sharing options...
salouso Posted June 14, 2022 Posted June 14, 2022 same here. since update I am seeing "in stock" "out of stock" (as before) and now also "available" which is basically a duplicate of "in stock". Showing the exact same numbers of products. Happened yesterday upon updating the faceted search module to v3.8.0 Any help here? Share this post Link to post Share on other sites More sharing options...
nrsoft Posted June 14, 2022 Posted June 14, 2022 (edited) Not the cleanest but since the filter was always the last one in my sidebar I have hidden it in CSS like this. You may have to adapt the code depending on the theme you are using. #search_filters_wrapper aside:last-child ul li:first-child { display: none; } Edited June 14, 2022 by nrsoft (see edit history) Share this post Link to post Share on other sites More sharing options...
Guido Corbesier Posted September 5, 2022 Posted September 5, 2022 Same problem still persists in latest version 1.7.8.7 1 Share this post Link to post Share on other sites More sharing options...
Juanaco Posted September 16, 2022 Posted September 16, 2022 Any news about this??? Share this post Link to post Share on other sites More sharing options...
Juanaco Posted September 16, 2022 Posted September 16, 2022 On 6/14/2022 at 10:09 AM, nrsoft said: Not the cleanest but since the filter was always the last one in my sidebar I have hidden it in CSS like this. You may have to adapt the code depending on the theme you are using. #search_filters_wrapper aside:last-child ul li:first-child { display: none; } could you show yout code html in order to know how to apply to the mine?? Share this post Link to post Share on other sites More sharing options...
nrsoft Posted September 16, 2022 Posted September 16, 2022 @Juanaco I am not sure showing the HTML code from my filters would help but if you send me the link to your website I can have a look and tell you how to adapt the CSS declaration Share this post Link to post Share on other sites More sharing options...
Juanaco Posted September 16, 2022 Posted September 16, 2022 On 6/14/2022 at 10:09 AM, nrsoft said: Not the cleanest but since the filter was always the last one in my sidebar I have hidden it in CSS like this. You may have to adapt the code depending on the theme you are using. #search_filters_wrapper aside:last-child ul li:first-child { display: none; } we are trying to apply our code to hide that option, but all our code hides the first value in every filter (so, for example, price doesn't show anything at all) Share this post Link to post Share on other sites More sharing options...
Juanaco Posted September 16, 2022 Posted September 16, 2022 Just now, nrsoft said: @Juanaco I am not sure showing the HTML code from my filters would help but if you send me the link to your website I can have a look and tell you how to adapt the CSS declaration Hi, ill send you our code Share this post Link to post Share on other sites More sharing options...
StrefaBiznesu Posted September 23, 2022 Posted September 23, 2022 Does anyone fix it yet? Share this post Link to post Share on other sites More sharing options...
Juanaco Posted September 23, 2022 Posted September 23, 2022 6 minutes ago, StrefaBiznesu said: Does anyone fix it yet? Hi, I have the next solution: edit the next file = ps_facetedsearch/views/templates/front/catalog/facets.tpl At line 57 you will find this code: {if !$filter.displayed} {continue} {/if} Replace for this {if !$filter.displayed || ($facet.type=='availability' && [email protected]==1)} {continue} {/if} Tested in prestashop 1.7.6.4 and it works perfect for me 3 1 Share this post Link to post Share on other sites More sharing options...
Guiom Posted January 4 Posted January 4 Working on 1.7.7.2 and 1.7.8.8 Share this post Link to post Share on other sites More sharing options...
Alecs_run Posted Thursday at 07:01 AM Posted Thursday at 07:01 AM On 9/23/2022 at 3:53 PM, Juanaco said: Hi, I have the next solution: edit the next file = ps_facetedsearch/views/templates/front/catalog/facets.tpl At line 57 you will find this code: {if !$filter.displayed} {continue} {/if} Replace for this {if !$filter.displayed || ($facet.type=='availability' && [email protected]==1)} {continue} {/if} Tested in prestashop 1.7.6.4 and it works perfect for me Thanks ! that's working for me 1.7.8.7 Share this post Link to post 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