OzzyM Posted May 13, 2022 Share 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 Link to comment Share on other sites More sharing options...
nrsoft Posted May 16, 2022 Share 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 Link to comment Share on other sites More sharing options...
Temerario Posted May 20, 2022 Share Posted May 20, 2022 Somebody resolve this problem? Link to comment Share on other sites More sharing options...
salouso Posted June 14, 2022 Share 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? Link to comment Share on other sites More sharing options...
nrsoft Posted June 14, 2022 Share 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) Link to comment Share on other sites More sharing options...
Guido Corbesier Posted September 5, 2022 Share Posted September 5, 2022 Same problem still persists in latest version 1.7.8.7 1 Link to comment Share on other sites More sharing options...
Juanaco Posted September 16, 2022 Share Posted September 16, 2022 Any news about this??? Link to comment Share on other sites More sharing options...
Juanaco Posted September 16, 2022 Share 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?? Link to comment Share on other sites More sharing options...
nrsoft Posted September 16, 2022 Share 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 Link to comment Share on other sites More sharing options...
Juanaco Posted September 16, 2022 Share 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) Link to comment Share on other sites More sharing options...
Juanaco Posted September 16, 2022 Share 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 Link to comment Share on other sites More sharing options...
StrefaBiznesu Posted September 23, 2022 Share Posted September 23, 2022 Does anyone fix it yet? Link to comment Share on other sites More sharing options...
Juanaco Posted September 23, 2022 Share 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' && $filter@iteration==1)} {continue} {/if} Tested in prestashop 1.7.6.4 and it works perfect for me 3 2 Link to comment Share on other sites More sharing options...
Guiom Posted January 4, 2023 Share Posted January 4, 2023 Working on 1.7.7.2 and 1.7.8.8 Link to comment Share on other sites More sharing options...
Alecs_run Posted February 2, 2023 Share Posted February 2, 2023 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' && $filter@iteration==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 Link to comment Share on other sites More sharing options...
marboo Posted March 19, 2023 Share Posted March 19, 2023 On 9/23/2022 at 2: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' && $filter@iteration==1)} {continue} {/if} Tested in prestashop 1.7.6.4 and it works perfect for me Hello, this is not working for 1.7.6.1. Any ideas for this version? Thanks! Link to comment Share on other sites More sharing options...
Nickz Posted March 19, 2023 Share Posted March 19, 2023 1 hour ago, marboo said: Hello, this is not working for 1.7.6.1. Any ideas for this version? Thanks! What is your problem? Please give details: the more the merrier. Link to comment Share on other sites More sharing options...
marboo Posted March 19, 2023 Share Posted March 19, 2023 My problem is that I don't need (and I don't want) to have both options, "Available" and "In stock", in this filter. To me they are equal. Moreover, it seems that the "Available" one is not traslatable, and I don't use English in my site. Thanks! Link to comment Share on other sites More sharing options...
Tomi14 Posted September 26, 2023 Share Posted September 26, 2023 Where do you have this options? I want to have avaliable or not filter too 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