5 replies [Last post]
bahram's picture
Offline
Joined: 08/11/2011
Juice: 20
Was this information Helpful?

Hello Drupal-Ubercarters,

I would like to start a fresh callout for help regarding selling tickets with the versions in the subject field (Drupal 6.22 and Ubercart 6.x-2.4).

As this has been a well-thrashed-out pursuit for this community and several tutorials have been contributed with cool solutions, I would like to request if it could be summarised in this here thread?

Why?

Because there's a lot of ideas floating around but I haven't found a concrete solution.

I have seen signup being used with uc_signup, I have seen SteveW's gracious tutorial and others suggesting third party solution integration.

But the requirements are simple?

1) dude/dudette visits site
2) dude/dudette selects qty and clicks "add to cart" on ticket product
3) checkout happens
4) dude/dudette gets emailed a ticket with barcode for each dude/dudette attending the shindig
5) event holder gets a summary list of all attending

In the interest of helping future folk and of course, seeing my deadline (which is dawn) for a first pass.
I hope this callout finds you in great spirits and I thank you many times in advance.

Bahram

bahram's picture
Offline
Joined: 08/11/2011
Juice: 20
anybody?

Hello ?

Cayenne's picture
Offline
Joined: 01/01/2009
Juice: 533
Re: anybody?

It seems you can do everything except the last two steps. There have been extensive discussions on creating barcoded tickets. I imagine that the purchase confirmation email could have a link to the ticket-generating script (such as example.com/ticket/getmine?id=kjfdgeourhg8944tihkj)

From there, the script has to know how to return the desired ticket in response to the unique ID.

Have you identified a barcode solution?

[edit] Oops, miscounted. THe LAST step can be done with Who Bought What, the module I wrote for ticketed events.

bahram's picture
Offline
Joined: 08/11/2011
Juice: 20
Thank you

Hi Cayenne,

Thank you so much for your reply.
I am going with the Barcode module + Barcode cck field.

I have the barcode value filled with a mathematical manipulation on the order_id and setting the value in the conditional actions executing some php (which I intend to use to email the pdf ticket)

I gotta say, I have had a look at your solution and at your site, they both rock!

My aim is to, utlimately, summarise my solution and post it up soon enough.

So far, I have gone some way towards SteveW's solutions but have kind of parted ways at the bar code stage as I have included the option for the purchaser to add names onto the ticket but not create accounts for each punter (like signup does).

The idea is to then gather how many people are on the one purchase, make a barcode for each and send all the deatils to the purchasing party in a pdf.

This was where I could see Who bought what applying because I couldn't add extra names to the ticket, only the name of the boat or goup.

Or have I misunderstood the power of your beast?

Smiling

Thanks again man.

Cayenne's picture
Offline
Joined: 01/01/2009
Juice: 533
That should work One thing I

That should work

One thing I did to make the multiple folks in the party thing work is to add a "Firstname" and a "Lastname" Field, for the name of each guest
Then, I set the product to quantity 1, requiring a new click-purchase for each guest.

This gives me a list of attendees by first and last name (which may differ from the purchaser, I learned), and if I want to sort by order, well, I just sort on the order number

Depending on how automagic you want to make this, you may need to get down into the guts of the code to copy or link in to the orders.

But I think to generate the tickies, you will want to do that on an order by order basis

bahram's picture
Offline
Joined: 08/11/2011
Juice: 20
Update on activities

Hi Cayenne,

Thanks to your encouragement, I have managed to get a pdf with barcodes emailed.

Issue now is, the purchaser's name is recorded and uc_node_checkout then presents the customer with a node asking for attendees names.

How does one validate the no. of names vs the qty of tickets ordered?

Well, I have done a var_dump of the $order within the conditional action "execute php" and found the appropriate variable to inspect for qty, then, for the field with multiple names, I used the php function count($node->field_attendees_names) to return this important bit of info.

Now, I don't know what to do if there is an unbalance between these two. Is there a way to abort the checkout process programatically and return them to the corresponding node highlighting their error?

I hope this makes sense.

With many thanks in advance.