Settings

Plugin Settings

Complete reference for all Raffle for WooCommerce settings.

Accessing Settings

Navigate to: WooCommerce → Settings → Raffle

General Settings

Ticket Number Format

  • Sequential - Numbers like 0001, 0002, 0003
  • Random - Alphanumeric codes like A7X9B2
Recommendation: Sequential for traditional feel, Random for preventing guessing.

Ticket Number Prefix

Description: Text prepended to all ticket numbers
  • Empty: 0001
  • "RAFFLE-": RAFFLE-0001
  • "2024-": 2024-0001
Tip: Keep it short (3-6 characters) for readability.

Starting Ticket Number

Description: First ticket number for sequential format Default: 1 Use case: Starting from 1001 for "bigger" looking numbers

Random.org API Key

Description: API key for provably fair random selection
  • Visit api.random.org
  • Create free account
  • Generate API key
  • Paste in this field
Free tier: 1,000 requests/day (sufficient for most users)

Per-Product Settings

These settings are configured on each raffle product.

Raffle Settings Tab

Located in: Product Data → Raffle Settings

Date & Time

SettingDescription
Start DateWhen ticket sales begin
Start TimeTime sales begin (HH:MM)
End DateWhen ticket sales end
End TimeTime sales end (HH:MM)
  • Leave start date empty to start immediately
  • Leave end date empty for no expiration
  • Uses site timezone

Ticket Limits

SettingDescription
Maximum TicketsTotal tickets available
Max Per CustomerLimit per customer email
  • Empty = unlimited
  • Per customer limit applies across all orders

Features

SettingDescription
Allow Gift PurchasesEnable gifting checkbox at checkout
Auto DrawAutomatically select winners at end

Winner Settings

SettingDescription
Number of WinnersHow many winners to draw (1-10)

Prize Configuration

SettingDescription
Prize TypeCustom, Product, or Store Credit
Prize DescriptionText description of prize
Prize ValueDisplay value (for Custom type)
Prize Product(s)WooCommerce products (for Product type)

Email Settings

Navigate to: WooCommerce → Settings → Emails

Raffle Emails

EmailTrigger
Ticket ConfirmationOrder completed with raffle items
Gift RecipientGift purchase notification to recipient
Winner NotificationWhen winner is selected

Customization Options

For each email:

  • Enable/Disable - Turn email on/off
  • Subject - Email subject line
  • Heading - Email heading text
  • Additional Content - Custom message

Default Values

If not explicitly set:

SettingDefault
Ticket FormatSequential
PrefixEmpty
Starting Number1
Max TicketsUnlimited
Max Per CustomerUnlimited
Gift PurchasesDisabled
Auto DrawDisabled
Number of Winners1
Prize TypeCustom

Setting Recommendations

For Charity Raffles

Ticket Format: Sequential
Prefix: "CHARITY-"
Max Per Customer: 20
Gift Purchases: Enabled
Prize Type: Custom
Number of Winners: 3

For Store Promotions

Ticket Format: Random
Prefix: Empty
Max Tickets: 500
Max Per Customer: 5
Gift Purchases: Disabled
Prize Type: Product
Auto Draw: Enabled

For High-Stakes Draws

Ticket Format: Sequential
Random.org API: Configured
Max Tickets: Limited
Max Per Customer: 1
Gift Purchases: Disabled
Prize Type: Custom (document externally)

Settings Migration

When updating the plugin:

  • All settings are preserved
  • New settings get default values
  • Check release notes for new options

Troubleshooting Settings

Settings Not Saving

  • Check user permissions (manage_woocommerce required)
  • Clear browser cache
  • Check for JavaScript errors
  • Disable conflicting plugins

Settings Not Applying

  • Clear WooCommerce transients
  • Refresh product page
  • Check individual product overrides

Random.org Not Working

  • Verify API key is correct
  • Check quota at random.org dashboard
  • Test with Standard Random method first