As per: http://drupal.org/node/664526

Perhaps add a ticket history table to the user page? Or, give the users a pane on the order screen so view tickets attached to that order?

Comments

emptyvoid’s picture

If the tickets where views aware you could simply create a view that lists tickets created by the given user account.

Sadly tickets are not objects you can reference in views.

didlix’s picture

Is there a reason why you don't views enable the database tables and add a default view?

I could possibly find some time to work on that for you.

OT: How does a customer log a ticket at present? - or can they not?

Anonymous’s picture

Customers log tickets through the contact form. At present, there is no way for them to view the ticket.

That's something I'm working on, albeit at a very slow pace.

I don't use views, so any help there in the form of patches would be welcome.

gorgo’s picture

subscribe

yngens’s picture

subscribe

gmaximus’s picture

I'd also really like to see tickets available for buyers to view, from the order...

gmaximus’s picture

Hi all...

I finally wrapped my head around PHP a couple of weeks ago, well the basic order of things and using some hooks. So thought I'd develop this functionality, as I've really wanted it for a while... I'm sure there are better ways to do it but this is the best I know. I also copied code from a few places including the original module...

Download "Ubercart Ticket Buyers"

It has a bug centered around the "View all buyer tickets" permission. In that for some reason when a user with that permission goes to my-tickets/[ticket-uid]/[ticket-id], where their UID is not the ticket-uid, they get signed in as ticket-uid (user).

I have absolutely no idea why this is so. The answer of course is don't give out that permission. If it can't be helped because of admin role being installed, don't visit that url unless you wanted to switch users of course.

I've also run out of time to add a configuration page for the module where you could enter you email for ubercart ticket. So you'll need to follow these steps to get it working:

  1. Open the uc_ticket_buyers.module file.
  2. Replace customerservice@example.com with the email that you use for Ubercart Ticket.
  3. Turn on the module in the normal way.
  4. Give the "View own buyer tickets" permission to your buyers.

This module will only work if you use one email account for your installation. Just visit /my-tickets as a buyer. The module provides a page with a table of tickets, a page for them to view a ticket and a page to post a reply.

Thanks to the module creator, I think Ubercart Tickets is a great module...

Guy

gmaximus’s picture

Issue summary: View changes
Status: Active » Needs review