Forum Replies Created
-
AuthorPosts
-
May 23, 2013 at 1:10 pm in reply to: Payment failed 2 last time successful. Sent 3 Tickets only payed for 1. #49628commandzParticipant
I found the PDFs in wp-content/uploads and also found where they are referenced in the wp_postmeta in the database.
I wanted to verify how many tickets were sent and if the email was sent. I am going to look around to see if I can find email send verification someplace.
Thanks for the help and the reply.
Andy
May 23, 2013 at 12:49 pm in reply to: Payment failed 2 last time successful. Sent 3 Tickets only payed for 1. #49623commandzParticipantIs there a way to manually resend a ticket?
May 23, 2013 at 12:35 pm in reply to: Payment failed 2 last time successful. Sent 3 Tickets only payed for 1. #49621commandzParticipantIt appears that it was happening when a charge failed via Stripe with Woocommerce.
Is there a way to check to see what was actually sent out in the email (pdf)? Where in the database would this be stored?
Thanks,
AndyFebruary 28, 2013 at 10:20 am in reply to: Wootickets: Product Templates and custom ticket numbers #41257commandzParticipantAs for the theming question, I was trying to use the default WooCommerce single product display of a product. I circumvented the default wootickets display by creating a new page and inserting the woocommerce shortcode: [product_page id=”99″]
February 28, 2013 at 10:15 am in reply to: Wootickets: Product Templates and custom ticket numbers #41256commandzParticipantWhat I was doing with the above is sending the information to a separate table (which you will need to create and then changing what was output onto the pdf.
In “the-events-calendar/lib/tickets/tribe-tickets.php” I changed line 244 from “$pdf->Write( 5, $ticket[‘ticket_id’] );” to “$pdf->Write( 5, $ticket_number );”
I also included the code that is in the above post. This allows me to set what the first ticket number is going to be ($ticket_first) and then associate it to original ticket number and order number in the new table.
February 28, 2013 at 10:03 am in reply to: Wootickets: Product Templates and custom ticket numbers #41254commandzParticipantI ended up purchasing the plugin—saved me a bunch of time—and customized the ticket output.
If others are looking for the same sort of thing, what I did is below.
Just below “foreach ( $tickets_list as $ticket ) {” in the-events-calendar/lib/tickets/tribe-tickets.php
mysql_connect(“localhost”, “user”, “pwd”) or die(mysql_error());
mysql_select_db(“database”) or die(mysql_error());//Find the max number in column
$MaxID = mysql_query(“SELECT MAX(column) FROM table “);
$MaxID = mysql_fetch_array($MaxID, MYSQL_BOTH);
$MaxID = $MaxID[0];//ticket logic
$ticket_first = 6034;
$ticket_number = ”;
if ($MaxID === null) {$ticket_number = $ticket_first;} else {$ticket_number = $MaxID + 1;}//Insert into the database
mysql_query(“INSERT INTO table
(holder_name, order_id, ticket_id, security_code, cust_ticket) VALUES(‘$ticket[holder_name]’, ‘$ticket[order_id]’, ‘$ticket[ticket_id]’,’$ticket[security_code]’,’$ticket_number’) “)
or die(mysql_error()); -
AuthorPosts