Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jul 2011 at 16:56 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rszrama commentedI'm not entirely sure what you're looking for here... you're saying dates do work as filters (and I presume exposed filters), but you want to be able to craft URLs that show all the orders from a given date range without using an exposed filter? Maybe I just need an example use case to work against.
Comment #2
rfayHere's an example: I want to provide a block which can show orders by month, or orders for the previous month (like a blog archive). It requires arguments/contextual filters, not exposed filters.
Comment #3
rszrama commentedLooks like there's already a default Views handler called views_handler_argument_date. Can you do any testing with that as our argument handler in commerce_order.views.inc? If that works, we can just use that for all our qualifying entities.
Comment #4
hozt commentedAre there any updates on getting date to work as a views argument? I am trying to create a series of sales reports and need sales by day, week, and month. It would also be great to be able to use payment date as an attribute also. Thanks!
Comment #5
TheWizz commentedsubscribe
Comment #6
EndEd commentedsubscribe
Comment #7
rszrama commentedTagging.
Comment #8
wjaspers commentedsub.
Comment #9
hawkdrupal commentedSubscribe.
My experience is that ANY date should be useable in this way (in every possible way). Businesses always seem to want dynamic reports, views, or whatever, by date of bid, ordered, modified, shipped (might be several dates of partial shipments), billed, paid, and also by custom date fields a particular business might require (manufacturing processes can have many dates).
Comment #10
rfayI'll see what I can do with this today.
Comment #11
rfayHere's a patch that allows sophisticated date arguments for both created and changed on customer, order, payment, and product.
Comment #12
wjaspers commentedWhy do you need a handler for every date part?
Comment #13
rfay@wjaspers it's from the other places where this is done. So you can do a view like a blog view, where the arguments are 2011/10/02, and use any one of the three parts.
Comment #15
rfayQueueing so this will retest after the branch testing works again.
Comment #16
rfay#11: commerce.date_arguments_1231350_11.patch queued for re-testing.
Comment #17
rszrama commentedWoohoo, committed. Happy report building! ; )