Sort by Price not working – ajax error

  • 1 year, 7 months ago #30699

    I have added Price – Low to High and High to Low Sorting, the ajax is returning [error 500 in network tab], rest of the sorting is working fine like relevancy, A-Z . I am using _price attribute for this filter.
    Image image.png of Sort by Price not working - ajax error
    Image image.png of Sort by Price not working - ajax error

    wpsolr
    Keymaster
    1 year, 7 months ago #30700

    Did you select “_price” in screen 2.2, and reindexed all your data?

    1 year, 7 months ago #30701

    Yes, we selected it and also indexed all data.
    Image image.png of
    Image image.png of

    1 year, 7 months ago #30702

    I deleted the data and re-indexed, now its working. Thank you

    wpsolr
    Keymaster
    1 year, 7 months ago #30704

    For your price, you should select the type “Float number” rather than integer number in screen 2.2 (then reindex all the data).

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.