X
392345

Unexpected Stock Display ("99") Instead of Actual Stock (40)

We are experiencing an issue where the stock displayed for certain ticket variations is incorrectly showing as 99, even though the actual stock level in both the WooCommerce product settings and in the eventson data is set to 40.

After some debugging, I found that in the function get_all_variation_types_dataset(), the following code seems to override the correct stock value with 99 when the item is already in the cart (/wp-content/plugins/eventon-ticket-variations-options/includes/class-event-variations_options.php, line 484) :

$variations[$v_id][‘stock’] = 99;

So when I activate “Show remaining tickets” in “Configure Event Ticket Settings”, the frontend says “99 Tickets remaining”. It looks to be coming from this hardcoding value.

BY: Olga Syrova - Jul 16,2025 AT 7:19AM - 1 hour ago
    • Artem Jul 16,2025 AT 9:02AM - Posted 1 hour ago - #392365

      Hello,

      Please update Tickets add-on to 2.4.17.

      Can we access wp-admin, so I can re-create the issue on our test site.

      Please send us wp-admin access to your site from “Access Info” box on right side menu, to further assist your situation.

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON