Bug in the ps_facetedsearch module. v3.3.0
When characteristics and attributes with the same name are created.
The Features do not filter the results well.
To Reproduce
Filter by price range shows no products after upgrading to this version, the other wilters work
I have tried to eliminate the filter by prices and have Attributes and Characteristics with the same name produces the error (with the characteristics): It does not show products.
On the other hand, if I change the name of the characteristics if I perform the search.
@omar2886 You need to rebuild price indexes.
Hi @Didweb,
I manage to reproduce the issue with PS1.7.6.1 & ps_facetedsearch v2.2.1 / v3.0.6 / v3.3.0.
Also the same issue with PS1.7.5.2 & ps_facetedsearch v3.3.0.
https://drive.google.com/file/d/1F2LVf_aBbloEKnzQ1gcn6muaYz9gevC3/view
I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!
Hi @PierreRambaud & @khouloudbelguith
when rebuilding index it gives me an error, also if I first clear cache (indexation failed). I used to have this same error on a previous version of this module, I think a specific caching folder must be manually erased, but don't remember, can you remind me please?
The cache is saved in database. Have you try to reinstall the module?
@PierreRambaud just did it, had to reconfigure it all, still get the same error during indexation. But! I found out that the filter by price (asc. desc.) works when you have applied first another filter from the facet menu, i.e. if you first filter a brand/condition/availability... then apply the filter by price, it works. Bizarre!
Still buggie and non functional, please release a new upgrade ASAP and this time include the #14518
@omar2886 Your issue seems different of this one, please open a new issue.
@Didweb Can you explain why your characteristics and attributes have the same name ?
I don't see the interest of doing this
@marionf
Initially, my client was not very clear on how to assign characteristics and variety of products.
And provisionally they assume duplicate options. Then notice the strange behavior of the pro faceted seeker. Until I realized that it was because the names were the same.
This may be the case, for example:
Some products have color combinations and other products do not have combinations, they are simply assigned a color as the product's characteristic.
Then the two options Color (combinations) and color (characteristic) come out. That in my opinion is also an error and that duplicates the search. But the bad thing is the characteristic does not filter well.
@marionf Could you tell us what do you expect here?
Because Faceted search is building URL like this:
http://prestashop/gb/6-accessories?q=Color-Black
Should we change it?
Is it possible to change the parameters in the URL ?
For example like this, where "color" & "size" are the feature and attribute's names:
feature_color=grey
attribute_size=S
feature_size=S
attribute_color=grey
Yes, we can change the URL, but it will result in SEO errors because old URLs are already fetched by Google and other search engines.
So the URL will look like:
http://prestashop/gb/6-accessories?q=Feature_Color-Black/Attribute_Color-Black
http://prestashop/gb/6-accessories?q=Caract茅ristique_Color-Black/Attribut_Color-Black
It looks a little bit weird but it can be a solution :thinking:
Hum I will have to change how URLs are build because of this bug #16320 :sweat_smile:
Could we imagine something like this instead: ?q[Category][]=Men&q[Feature][Color][]=White&q[Attribute][Color][]=Black ?