Home › Forums › Ticket Products › Event Tickets Plus › Is there a way to automatically set tickets to "Completed" vs. "Processing"?
- This topic has 19 replies, 7 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
June 11, 2013 at 3:22 pm #51092MikeParticipant
The extra step of having to manually move all ticket sales from Processing to Completed seems to be mindless busy work. While I can see the value for products that require shipping, in the case of Wootickets this is a moot issue, as the customer is automatically receiving their ticket to the event. How can I skip this extra busy work?
June 11, 2013 at 4:58 pm #51109BarryMemberI would agree 🙂
Some members of the community have found that changing the product type (via the WooCommerce product editor) from shipped to virtual and downloadable mitigates this problem – though I believe it depends to some extent on the type of payment gateway in use – so that could be a possible workaround in the interim.
(Sidenote – in the next release of WooTickets all ticket products will be virtual by default.)
It’s probably possible to customize things so WooCommerce moves the order status directly to complete however – but it may be better to touch base with their support peeps for advice on how to do that.
June 12, 2013 at 1:35 pm #51206Steven KaufmanParticipantThis reply is private.
June 13, 2013 at 10:31 am #51264BarryMemberHi Nabha,
The key is to remember that tickets are simple WooCommerce products – so by and large anything you might do with other WooCommerce products you can potentially do with a ticket.
It would be beyond the scope of support that we can offer to guide you through setting that up, however.
June 14, 2013 at 6:19 am #51336BarryMemberNabha – following from a slightly-related topic, you could also give the following workaround a whirl: take a look at this code (it’s a snippet you could drop in to your theme’s functions.php file) and used as-is it makes tickets visible in the WooCommerce storefront and changes their type to virtual/downloadable automatically.
That isn’t quite what you want, but you can see at the bottom of the snippet where those properties are defined. In your case you might not want that (and could remove/comment out the relevant lines) but you could try setting the tax_status and tax_class properties instead:
new Adapt_WooTicket_Type(array(
'tax_status' => 'non-taxable',
'tax_class' => 'untaxed',
));Note that you may need to play around with those values (tax_class in particular) – I’m simply making an educated guess and you may need to check in with the boffins over at WooThemes to figure out what the actual values should be in your case … this is just a possible starting point you can try.
June 14, 2013 at 11:32 am #51366Steven KaufmanParticipantBarry, that sounds very promising. Thank you so much for your help. I’ll give it a whirl.
June 14, 2013 at 12:04 pm #51370BarryMemberNo problem, I hope it helps ( even if it just forms the basis of a completely new approach) 🙂
June 18, 2013 at 2:21 pm #51599PaulParticipantThis works very well …
How to Set WooCommerce Virtual Order Status to Complete After Payment
June 18, 2013 at 4:52 pm #51605BarryMemberExcellent, thanks for the tip Paul 🙂
June 20, 2013 at 1:06 am #51722somaticParticipanttried that code from skyverge. Didn’t work for me at all, even stripping out most of it and simply *always* changing status to completed (since I’m only selling tickets). Only thing that works is checking “virtual” AND “downloadable” — which has the annoying effect of including a mention of downloadable files in the order email 😛
June 20, 2013 at 6:04 am #51734BarryMemberYep the idea of changing the status to virtual and downloadable is just to force sales to be marked as completed earlier than they would otherwise, in the case of most payment gateways. It’s not ideal and is nothing more than a quick workaround.
In the next version of WooTickets all ticket products will be virtual by default as we feel that is the best model for what is actually being purchased – the issue of making the order immediately complete however is something that really needs to be solved at WooCommerce/payment gateway level.
June 21, 2013 at 1:30 am #51829somaticParticipantSo after getting really annoyed with all the additional language that woocommerce tacks on when a product is also “downloadable”, I revisited the skyverge.com code, and realized I was probably adding the filter too late. I’m using a child theme, and I needed to add the filter within the “after_setup_theme” hook in order for it to take effect. It works brilliantly, even with the clunky old paypal standard payments…
June 21, 2013 at 6:10 am #51840BarryMemberGreat!
Regarding the additional language tacked on by WooCommerce you may be able to dispose of that by customizing/overriding the relevant template.
Mike: does the approach outlined by Paul (in the skyverge.com link) work for you?
June 21, 2013 at 12:01 pm #51864somaticParticipantwell, with the skyverge solution, I don’t need to make the tickets “downloadable” – just “virtual” , so i’m avoiding the language. But yes, you could hunt down all the various places that download language gets added to order confirmation pages, emails, etc, but I found that route not so simple…
June 21, 2013 at 12:31 pm #51867BarryMemberDefinitely, well in that case it sounds like you are all set 🙂
-
AuthorPosts
- The topic ‘Is there a way to automatically set tickets to "Completed" vs. "Processing"?’ is closed to new replies.