• Resolved uniqcode

    (@uniqcode)


    Hi
    Thanks for a great plugin.

    I was wondering if it is possible to filter by post_date, or if you had any plans to add that? I would like to be able to have a New Products filter showing, say, only products added in the past ‘n’ days. I tried setting up a Products Meta Data filter with a Date Range, but couldn’t get it to work, presumably because post_date is in wp_posts rather than wp_postmeta.

    I also wonder if it might be a good idea to merge all the filters that consist only of a single checkbox – Stock Status, Featured Products, On Sale – into a single filter, because at present they don’t get laid out very well and waste a lot of space. Then instead of each filter having options like Collapsible and Filter Type that make no sense for them, you could just have enable/disable for each one, and a single set of style options for all of them. Just a thought.

    All the best
    Ben

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author annastaa

    (@annastaa)

    Hello Ben,

    Thank you for your kind words and the interest in our plugin!

    As for filtering by product creation date, to tell you the truth you are the first person to ask for this feature. I will mark it as feature request, but have to warn you that it isn’t on our current agenda.

    You are absolutely correct in your assumption that the meta data filter wouldn’t work on the post_date field of posts table, but if this kind of filtering is important for you, you can always create a custom meta data field with the needed data (could even be done programmatically on product submission I suppose), and then create a date filter based on this meta data field. The supported database date formats for dates filtering are: Unix timestamp, YYMMDD, YY/MM/DD, YY-MM-DD, YY/MM/DD HH:MI:SS, YY-MM-DD HH:MI:SS.

    As for your proposal about the single-checkbox filters, the current way with each preset requesting only the filters that are actually added to it is a bit more speed-efficient, and I’m afraid it would be an extremely difficult task to change the current plugin architecture. Have you tried disabling filter title display with the help of the Show title bar option?

    Plugin Author annastaa

    (@annastaa)

    Dear Ben,

    Thank you once again for your interest and the proposals! I will close this inactive thread, but you are welcome to open a new one if you have any other feedback or questions about our filters!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter by post date’ is closed to new replies.