Lottery Pick Number and how to avoid on hold orders and duplicate numbers

In pick number it is possible to have two users selecting same number unless things are properly set up. How that could happen? For example one user selects number and does not pay for order right away but later on whole order is still created and available for payment / checkou. In meantime other user purchased that number in other client’s order. If 1st user tries to make payment order will go on hold due to duplicate ticket. This is normal behaviour of plugin.

How can site owner prevent this situtation?

  1. Lottery Pick Number comes with ticket reservation setting, it is located in Woo Settings > Lottery
  2. sensible value for reservation is 5 minutes, this means tickets will be unable for selection to others for 5 mins after user adds it to cart
  3. now we need to define time in which order will be cancelled if not paid, this is done via setting called “Hold Stock”, in Woo Settings > Products > Inventory tab, you need to set hold stock to 1 minute less than reservation time, so set it to 4 mins

This way we allowed each user 4 minutes to complete payment and finalize order, 1 minute later ticket will be freed if order was not completed. Settings explained here apply both to randomly assigned number and manual ticket number picking.

If you have some questions please open ticket here.