Custom field filters
- wpsolrKeymaster3 years, 4 months ago #26316
Please replace your WPSOLR with this fix: https://trello.com/c/mthuQZN6/158-fix-algolia-date-filter
It should solve your date filtering with Algolia.
PiteusParticipant3 years, 4 months ago #26317Now i’ve a new problem, it seems to filter by date, but the slider is blocked from 19 january 1970 to 19 january 1970, but if i move slide the query in the url bar change correctly(at least apparently not seeing the date), another problem is that after i filter by Date the filter by product_cat disappear
wpsolrKeymaster3 years, 4 months ago #26319Please replace your WPSOLR with this fix: https://trello.com/c/mthuQZN6/158-fix-algolia-date-filter
You’ll need to re-index all your data.PiteusParticipant3 years, 4 months ago #26321I’ve replaced with that fix but and re-indexed all data but it showed me 19 january 1970, i solved editing code in javascript option(2.4 Filter -> custom_data), using code in this page i had this problem
https://www.wpsolr.com/guide/configuration-step-by-step-schematic/activate-extensions/extension-theme/theme-facets-layouts/theme-range-slider-layout/
I solved using thiswpsolr_ion_range_slider_options = { type: "double", grid: false, prettify: function tsToDate(ts) { var lang = "it-IT" var d = new Date(Date.UTC(1970, 0, 1)); d.setUTCSeconds(ts); return d.toLocaleDateString(lang, { year: 'numeric', month: 'long', day: 'numeric' }); } };
Thanks for the support
You must be logged in to reply to this topic.