Closed ah-net closed 3 months ago
There seems to be another bug in this code. If you have
Black,
first in your attribute options and thenblack,
, the slug ofBlack,
will be overwritten in the database.
Tweakwise gives the same result if you send black or Black. So no changes needed for this.
When attribute values have different spellings (Black and Black"), that may cause filters to return no products.
How to Reproduce the Issue:
tweakwise_attribute_slug
table. This may cause (depending on the order) to cause an tweakwise filter with the same value to return no products.How to test
Solution Implemented in the Pull Request:
To address this issue, the pull request introduces a fix by appending an extra dash and an number at the end of the slug value. This ensures that the slug value remains unique at all times. To fix duplicate values the only thing the customer has to do is to save the attribute with duplicate values.