The Raffle Ticket Generator has 2 options to automatically pick a winner for your raffle. Random drawing from the back end admin panel of WordPress or a Live Drawing Shortcode option on a WordPress page.
To do a backend drawing – simply select the raffle from the Select a Raffle to Pick Winner section.
This will display the number of tickets. To begin the random selection, simply click start. This will start cycling through orders and tickets randomly. When you are ready to pick the winner, simply click stop and the random selection will be displayed.
To add the winner to the Winner Table and save it, simply click “Add this winner to the winner table” This is for record keeping and also to allow you to select multiple winners. Many of our large raffle prizes have strict guidelines and they need to select a First Runner Up or Second Runner Up in case the winner is ineligible. This also allows for a Grand Prize, First Prize, Second Prize, etc. for multi-prize raffles.
Live Drawing for Front End Drawings:
To do a live drawing, you will need the shortcode reference that is under the raffle on the Pick a Raffle Winner Page. This is only Supported on a WordPress Page, not a Post.
In this example it displays the name of the raffle (Gold Raffle) and then the Shortcode:
[winnerpage catid=”21″ numberofwinners=”1″ winnertype1=”Grand Winner” winnertype2=”Winner2″ winnertype3=”Winner3″ winnertype4=”Winner4″ winnertype5=”Winner5″ winnertype6=”Winner6″ winnertype7=”Winner7″ winnertype8=”Winner8″ winnertype9=”Winner9″ winnertype10=”Winner10″ time=”45″ format=”s” textstart=”Winner Selection Is started” textend=”Winner Selection Is Over”]
The Shortcode is what you will need to put on a WordPress page. Here are the meaning behind the various attributes:
- catid=”x” This is the WooCommerce product category id. We show this for each raffle to make it easy for you to simply cut and paste into the wordpress page.
- numberofwinners=”x” This is the number of winners to display. Default is 1 and you can have up to 10 winners.
- winnertype(1-10)=”alpha-numeric” This is the prize or designation of the winner. Examples are Grand Prize Winner, First Alternate, Runner Up, etc.
- time=”xx” This is the number of seconds to display the random cycling of tickets prior to picking the winner. Default is 45 seconds. That will give a good sampling of random tickets to help show that the drawing is random.
- format=”s” This is for seconds. Other options are “m”, although rarely used. Unless you have millions of tickets, it does not make sense to have a cycle time longer than about 45 seconds.
- textstart=”Winner Selection is started” This the text header that displays above the random cycling of tickets when the tickets are being cycled.
- textend=”Winner Selection Is Over” This is the text header that displays when the winner(s) have been chosen.
WordPress Page Settings:
To use the shortcode, create a WordPress page and add the shortcode in the text editor. This shortcode only works on a WordPress PAGE. It is not compatible with a POST
Below the text editor is a date field for Automatic Winner Setting for RTG. Use the calendar widget and select the time you want to being the drawing. The time operates on the WordPress time zone, BUT we have seen instances on various hosts, where the WordPress time is not getting set and the time is actually UTC. Test the time to make sure the time is what you want. When the time is set and shortcode is entered – this is what you will see. When the timer ends – it will cycle through and then select the winner(s).