Home › Forums › Ticket Products › Event Tickets Plus › Shared capacity incorrect when Woocommerce order manually completed
- This topic has 7 replies, 2 voices, and was last updated 7 years, 11 months ago by
northmemorial.
-
AuthorPosts
-
May 7, 2018 at 3:54 pm #1524742
northmemorial
ParticipantHello,
Thanks in advance for your time. I’m encountering an issue where the shared capacity is incorrect whenever a woocommerce order is flagged and marked as “on hold”. When I manually update the order to “processing” or “complete”, the shared capacity is updated but is incorrect.
For example, if I have a shared capacity of 4 and I purchase one each of two ticket types (2 tickets total), the remaining shared capacity for the event is 3.
I’ve turned off all plugins and tested this with the twentyseventeen theme and have the same result. I’ve tested for other factors such whether or not it matters if one of the ticket types is free. This only happens when an order isn’t immediately successful on Woocommerce and has to be manually changed.
Any help you can provide is greatly appreciated!
May 7, 2018 at 4:07 pm #1524763northmemorial
ParticipantJust a note, this is an issue both with the WooCommerce PayPal Pro plugin and with payments processed with the basic PayPal payment that’s built in to Woocommerce.
May 8, 2018 at 5:37 am #1525069Jaime Marchwinski
KeymasterHi Laurel,
Thanks so much for reaching out!
You can try having the orders automatically marked as complete, which should help to bypass the issue. You can add the following snippet to your theme’s functions.php file:
https://docs.woocommerce.com/document/automatically-complete-orders/
Let me know if that helps!
Thanks,
Jaime
May 8, 2018 at 9:38 am #1525443northmemorial
ParticipantHi Jaime,
Our client needs to know the actual status of the woocommerce orders so that they can look into any transactions that need additional attention. I tried marking the orders complete automatically as you suggested to see if that’d work anyways but the shared capacity is still incorrect. I’m attaching screenshots so you can see the conflict between the shared capacity setting and the number of tickets remaining versus the number of tickets purchased.
May 9, 2018 at 4:15 am #1526012Jaime Marchwinski
KeymasterHi Laurel,
I tested out the scenario that you were describing and I can replicate what you are seeing. What you can do is when you change the On Hold order status to Complete, click on the ticket area in the Woocommerce Order and Reduce Stock, as in the following screenshot:

You can also choose to reduce the stock when the order is On Hold.
Let me know if that helps!
Thanks,
Jaime
May 9, 2018 at 8:27 am #1526202northmemorial
ParticipantHi Jaime,
What version of Woocommerce are you using? I don’t have the reduce/increase stock buttons – unless there’s a setting that I’m not seeing?
May 9, 2018 at 8:56 am #1526244northmemorial
ParticipantJaime,
I found a snippet from one of the Woocommerce developers that automatically increases/decreases stock when an order is manually set to completed/processing/cancelled. This is working for me so I’m posting it here in case it helps anyone else.
https://github.com/claudiosanches/reduce-stock-of-manual-orders-for-woocommerce
Will fixing this get put on the radar for a future release? Let me know if there’s somewhere else I should report this cause it does seem like the capacity should always be in line with current orders.
Thanks again for your help!
May 9, 2018 at 11:33 am #1526465Jaime Marchwinski
KeymasterHi Laurel,
This is using the most recent version of WooCommerce (3.3.5). If you go to a WooCommerce Order and click on the white box under Item, the Reduce Stock and Increase Stock buttons appear.
In any case, glad to hear that you’ve found a working solution for yourself for now, and thanks for sharing with us!
Let me know if you have any other questions on this topic!
Thanks,
Jaime
May 31, 2018 at 9:35 am #1542986Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Shared capacity incorrect when Woocommerce order manually completed’ is closed to new replies.
