Downloads
This module provides a tab on the product page named “Purchases†and provides a listing of the orders made for the product. The default listing includes all orders and is sorted descending by date. To access this tab, a user must have the ‘view purchases list’ permission (available with this module).
There are 3 list formats with corresponding tabs:
List View
3 column table, column one has the order details (including attributes), column 2 has the billing address, column 3 has the delivery address. The addresses here are formatted using the us_address_format function. If the user has ‘view all orders’ permission, the ID value is displayed as a link to that page.
Table View
This view provides the data in one large table. The addresses here are currently US centric (I need a better understanding of international addresses). If the user has ‘view all orders’ permission, the ID value is displayed as a link to that page. If the product has attributes, the attributes populate separate columns.
Download
Not really a view per se, but this option provides the data as a CSV file. The method for creating the file follows the method used by the Webform module.
Currently you can query the listing by date, the default dates are the first/last order dates and the defaults.
It’s just a start and I already see a number of ways of improving on the module. Any thoughts or ideas would be appreciated. I created this module as we have a number of events that people can sign up for and we wanted to be able to provide access to “registration†information to users who are organizing the event, but are not administrators of ubercart. I found the some posts on signup/event module integration (noted below), but since that integration doesn’t currently exist, I thought this might work in the short term.
The files are attached as both .tar.gz and .zip
Development
| Preview | Attachment | Size |
|---|---|---|
| uc_purchases.zip | 4.64 KB | |
| uc_purchases.tar.gz | 4.38 KB |
