-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Range filter is not working #2374
Comments
it would be great if you could further debug this issue because I don't have that complex setup. Please create a pull request or patch if you have a solution to discuss 😊 |
Unfortunately my understanding of Isotope is not that comprehensive to debug that thing to the causing problem. But what I have seen every range attribute (which we define as attribute number) works random (when it shows results), but the price field always works as it should. What would be the fastest thing to do (on mine side) so that you can debug it? :) |
we do offer paid support through the Isotope Circle (https://circle.isotopeecommerce.org) 🙃 |
You sir, needs to do better packaging to sell it :) All thou I'm familiar how Isotope is developed, but still, we are talking about bugfix :) ...but I can make a few feature suggestion to push Isotope CRO to next level, of course for free :P |
Taking this up again with a solution. Had the same problem. Contao 4.13.49 I found out, that even the digit-values are saved as varchar. I extended the TextField-Attribute to handle digits as numbers in the database. I have added a field to control the decimal places individually. Range filter works now. Not the cleanest, but it had to be done quickly :) It makes some problems if you have an existing installation with non decimals values. I made some changes directly in the database, because I had no time to build a runonce-file. config/config.php
dca/tl_isotope_attribute.php
languages/de/tl_isotope_attribute.php
App/Model/Attribute/TextField.php
|
I'm not sure I can follow here. Setting "Input validation" to "Numeric" means you cannot enter decimal places. If you need decimal places, change the Input validation. A text field can store both, but the validation should prevent it. Maybe that already solves the problem? |
I had the problem that the data got imported and the customer had wrong data (e. g. strings). While the filter is generated in the frontend, the original input is no longer validated. As a result, the filter no longer works. And due to the non-strict DB field, you still have a way to enter anything, even strings that are not numbers. The strict DB field means that incorrect data can no longer be entered. Not even via an import. |
@xApep any work is work. This is OSS you can use free of charge. |
I get that, but it is basically an issue with your import in the first place, right? Also, be aware that you can always create DCA fields like everywhere in Contao, by adding them to |
The more I do the more things are not working, or I just don't know how to set it up correctly =)
This is my module settings
This is initial dump before submitting the range filter form (item value of specs_dimension_depth: 70)
If not adjusting the range filter, meaning min: 1 max: 110
No matter which value I set for max (above 99), eg. 100, 101
But if I set value for max under 100, for example 99
This probably is not working as it should since no matter which max I would set that is above 70 (this is product specs_dimension_depth value), items should be shown.
Contao: 4.13.8
Isotope: 2.8.7
The text was updated successfully, but these errors were encountered: