1. Documentation /
  2. Lottery for WooCommerce

Lottery for WooCommerce

Lottery for WooCommerce is a full-featured lottery plugin for creating and managing online lotteries in your WooCommerce Shop.

Installation

↑ Back to top
  1. Download the lottery-for-woocommerce.zip file from your WooCommerce account.
  2. Go to: WordPress Admin > Plugins > Add New and Upload Plugin with the file you downloaded with Choose File.
  3. Install Now and Activate the extension.

More information at: Install and Activate Plugins/Extensions.

Supported Lottery Types

↑ Back to top

Automatic Ticket Generation Lotteries

↑ Back to top

In this type of lottery, the ticket number will be automatically generated once the user participates in the lottery. The ticket details will be mailed to the user.

User selection lottery tickets Numbers

↑ Back to top

In this type of lottery, site admin can allow their users to choose their own ticket numbers for participating in the lottery. The ticket details will be mailed to the user.

Supported Winning Item Selection Types

↑ Back to top

Products Inside the Site

↑ Back to top
  • In this type, you can choose one or more products sold on your site as the Lottery Winning Item.
  • Once the winner is decided(Automatically/Manually), an order will be created on behalf of the winner with the winning item for free of cost.
  • The product can be shipped to the winner in case if the product is a physical product. If the product is a downloadable product, the winner will gain access to files.
  • The Lottery Winning Item can be accessed from the My Account Page > Orders similar to any other order.

Products Outside the Site

↑ Back to top
  • You can choose this type if your Lottery Winning Item is not sold on your site.
  • You may have to create a page which explains what the winners will receive if they participate in the lottery and link that page’s URL in the URL option provided.
  • Once the winner(s) are decided, you will have to manage the process of sending the winning items to the winners outside the site.

Setup and Configuration

↑ Back to top

Server Cron Configuration

↑ Back to top

Lottery for WooCommerce Requires Server Cron in order for the plugin to work. To setup Server cron do the following steps.
1. Login to the cPanel of your site
2. Locate “Cron Jobs” within the cPanel
3. Under the “Add New Cron Job” section, fill the following data

a. Common Settings

In this section, you can set up how frequently the Cron should run. For Example, if the value is set as “Once Per Minute”, then the cron will run once every minute. Once the cron is triggered, the following activities will be updated.

  • Starting Future Lotteries
  • Ending Closed Lotteries

b. Update Cron Command

wget -q -O – http://www.your-domain.com/?lty_lottery_cron=update

Plugin Settings

↑ Back to top

General

General Settings

  • Once the plugin is installed, a page for displaying the lottery products will be automatically created and assigned. If you want to modify the page in which the lottery products are displayed, you can do so by selecting a different page in the “Lottery Page” option.
  • The lottery products created will be displayed in the lottery page. The order in which the lottery products should be displayed can be customized in the “Default Sorting in Lottery Page”.
  • A separate page to list the On-going lottery products will be available to the user. Your users can view additional details regarding the lottery product from this page. To display this information on a different page, you can do so by customizing the “Lottery Entry List Page” option.
  • If you want to differentiate normal products from Lottery products, you can do so by adding a badge to the product image. To configure a badge, enable the “Enable lottery Badge” option.
  • By default, an image will be selected. If you want to change the badge icon, you can do so by choosing a new image.
  • By default when guest users try to participate in the lottery, they will be forced to login on the checkout page. Optionally you can completely prevent guest user participation/allow guest user participation by customizing the “Guest User Participation Type” option.
  • By Default, the Lottery will reach “Completed” status when their payment order reaches “Processing or Completed”. If you want to customize the order status, you can do so by modifying the “Order Status” option.
  • By default on the thank you page, the lottery ticket numbers will be displayed immediately after the order is placed. If you wish to ticket numbers only after payment confirmation, you can do so by customizing the “Display Ticket Number(s) in Thank You Page & Order Details Page” option.
  • By default, all lottery products will be closed only when the end date has reached. If you want to close the lottery products once all the tickets have been sold, you can do so by enabling the “Close Lottery when All the Tickets have been Sold”.

Reserve Ticket Number Settings

  • In “Users are allowed to choose the Ticket Number” mode, if you wish to hold the ticket number for a specified time period, you can do so by enabling the “Reserve Ticket Number Till Purchase Completion” option.
  • You can customize the duration in the “Ticket Reserve Duration in Minutes” option.

Question Answer

Q&A Settings

  • If you want to ask a Question to your users before purchasing a ticket, you can do so by enabling the “Ask a Question before Purchasing Tickets”.
  • By default, the user will not be forced to answer the Question to purchase a ticket. If you want to force your users to answer the question, you can do so by enabling the “Force Users to Answer the Question”.
  • By default, there is no time limit for answering the question. If you wish to place a time limit for answering the question, you can do so by selecting “Limited” in the Q/A Limit Type option. You can set the time limit in the “Set Time Limit” option.
  • If you wish to prevent ticket generation for choosing incorrect answer , you can do so by enabling the “Don’t Generate Ticket Numbers for Incorrectly Answered Question” option.
  • By default, the user will be allowed to purchase a ticket once they select an answer. The answer will not be verified. If you want to allow your users to purchase tickets only when a correct answer is selected, enable the “Verify Answer Purchasing Lottery”.
  • By default, if your users answer incorrectly for 1 time, they will not be allowed to participate in that lottery. You can customize the limit to any value you want or you can set it to unlimited.
  • In the “Your Question” option, input the question which you want to ask your users. You can display all the answer options at once or display the options in a dropdown by customizing the “Options Display Type” option.
  • To add answer options, click the “Add Answer Options” button. You can mark the correct answer by selecting the “Correct Answer” checkbox next to the answer. You can add any number of options.

Ticket Generation

Automatic Random Ticket Generation Settings

  • You can configure the ticket attributes like Ticket Number Type, Ticket Length, Ticket Prefix and Ticket suffix.
  • Please note this options not applicable for User selection lottery tickets Numbers type.

Shop, Category and Other Pages

General Display Settings

  • By default, Lottery products will be visible in shop page. If you want to hide the Lottery Products on the shop page, you can do so by enabling “Hide Lottery Products on Shop Page”.
  • By default, Lottery products will be visible in category page. If you want to hide the lottery products on the category page, you can do so by enabling “Hide Lottery Products on Category Page”.
  • By default, lottery products will be visible in Tag page. If you want to hide the lottery products from the tag page, you can do so by enabling “Hide Lottery Products on Tag Page”.
  • By default, Finished Lottery products will be visible in shop & category pages. If you want to hide the Finished Lottery products from the shop and category pages, you can do so by enabling “Hide Finished Lottery Products on Shop & Category pages”.
  • By default, Failed Lottery products will be visible in shop & category pages. If you want to hide the Failed Lottery products from the shop and category pages, you can do so by enabling “Hide Failed Lottery Products on Shop & Category pages”.
  • By default, Closed Lottery products will be visible in shop & category pages. If you want to hide the Closed Lottery products from the shop and category pages, you can do so by enabling “Hide Closed Lottery Products on Shop & Category pages”.

Lottery Products Display Settings

  • If you want to display a progress bar on the shop and category pages, you can do so by enabling “Display Progress Bar in the Shop and Category Page(s)”.
  • By default, the Remaining Ticket Info will be visible in the Progress Bar. If you want to hide the Remaining Ticket Info in the Progress Bar, you can do so by enabling the “Hide Remaining Ticket Info message in the Progress bar”.
  • By default, the Lottery Start Date will be visible on the shop page. If you want to hide the Countdown Timer, you can do so by enabling “Hide Lottery Start Date on Shop Page”.
  • By default, the Lottery End Date will be visible on the shop page. If you want to hide the Countdown Timer, you can do so by enabling “Hide Lottery End Date on Shop Page”.
  • By default, the Countdown timer for the Lottery will be displayed. If you want to hide the countdown timer, enable the “Hide Countdown timer for the Lottery Products in Shop and Category Pages” option.
  • If you wish to hide the Lottery Status on shop and category pages, you can do so by enabling the “Hide Lottery Status on Shop and Category Pages” option.

Single Product Page

General Settings

  • To add multiple quantities of the ticket to the cart, the default quantity field will be available. If you wish to provide a range slider for choosing the quantity, you can do so by customizing the “Quantity Selector Type” option.
  • If you want to disable the “Participate Now” till the user answers the question and selects the ticket number, enable the “Disable Participate Now button when Question Answer and Ticket Number not Selected” option.
  • If you wish to redirect your users to the checkout page by clicking the Participate Now button, you can do so by enabling the “Enable Participate Now button Redirection to Checkout Page” option.
  • If you wish to display the ticket search bar on the product page, you can do so by enabling the “Enable Ticket Search Bar” option.
  • If you wish to hide Instant Win Prizes tab on the product page, you can do so by enabling the “Hide Instant Win Prizes Tab” option.

Display Settings

  • By default, Lottery status will be visible on the single product page. If you want to hide the Lottery status, you can do so by enabling “Hide Lottery Status on Single Product Page”.
  • By default, the Lottery start date will be visible on the single product page. If you want to hide the countdown timer, you can do so by enabling “Hide Lottery Start Date on Single Product Page”.
  • By default, the Lottery End Date will be visible on the single product page. If you want to hide the countdown timer, you can do so by enabling “Hide Lottery End Date on Single Product Page”.
  • By default, countdown timer will be visible in the single product pages. If you want to hide the countdown timer, you can do so by enabling “Hide Countdown Timer for Single Product Pages”.
  • By default, timezone info will be visible in the single product page. If you want to hide the timezone info, you can do so by enabling “Hide Timezone info in the Single Product Page”.
  • By default, Minimum Ticket Info will be visible on the single product page. If you want to hide the Minimum Ticket Info, you can do so by enabling “Hide Minimum Ticket info in the Single Product Page”.
  • By default, Maximum Ticket Info will be visible on the single product page. If you want to hide the Maximum Ticket Info, you can do so by enabling “Hide Maximum Ticket info in the Single Product Page”.
  • By default, Minimum Tickets per user info will be visible on the single product page. If you want to hide the Minimum Tickets per user info, you can do so by enabling “Hide Minimum Tickets per user info in the Single Product Page”.
  • By default, Maximum Tickets per user info will be visible on the single product page. If you want to hide the Maximum Tickets per user info, you can do so by enabling “Hide Maximum Tickets per user info in the Single Product Page”.
  • If you want to display a progress bar on the single product page, you can do so by enabling “Display Progress Bar”.
  • By default, the Winner Message will be visible on the single product page. If you want to hide the Winner Message, you can do so by enabling “Hide Winner Message on Single Product Page”.
  • By default, the Lottery Tickets Sold count will be visible on the single product page. If you want to hide the Lottery Tickets Sold count, you can do so by enabling “Hide Lottery Tickets Sold on Single Product Page”.
  • By default, the bidder name will be masked and displayed. If you want to display the name of the bidder, disable the “Mask the user name in Ticket Logs tab on the Single product page” option.

Alert Settings

If you wish to hide the confirmation alert when the user answers a question correctly, you can do so by enabling the “Hide Confirmation Alert when Selected the Answer for the Question(To make sure the selected Answer)” option.

Lottery Ticket Details

Lottery Ticket Details on the Single Product Page

You can customize how the purchased lottery tickets are displayed on the single product page in this section.

Dashboard Settings

You can customize the number entries of page displayed in the lottery dashboard in this section.

Winner Details

You can customize how the winner details are presented on the product page in the section.

Advanced

General

IP Address Restriction  Settings

By default, multiple users from the same IP Address can participate in a lottery. If you want to prevent multiple users from the same IP from participating in the lottery, you can do by enabling the “Restrict User to Purchase Lottery Ticket based on IP address” option.

Export CSV File Settings

You can customize the file name of the Export CSV file in the “Export CSV File Name” option.

Cron

Cron Settings

There are 2 types of Crons

1. WP Cron

WP Cron is supported in all WordPress sites by default(Unless turned off manually in the wp-config file). The main disadvantage of WP Cron is that it will trigger only when someone visits the site. For example, If there is no site activity for some time say 10 days, the cron will not be triggered on those 10 days.

2. Server Cron

Server Cron is an alternate to WP Cron. The main advantage of Server Cron is that it is not dependent on site activity. But, Server Cron requires separate configuration. As far as we know, it cannot be configured using a Plugin within the site. It can only be configured from the site’s C-Panel or control panel.
If you want to use WP Cron, then in “Select Cron Type” select “WP Cron”. If you want to run Server cron, select “Server Cron”. Please follow the steps mentioned in the “Server Cron Configuration” section.

Color Customization

You can customize the color of the lottery elements in single product page, shop, category and tag pages.

Shortcodes

In this section, you can find the supported shortcodes along with their purpose.

Notifications

In this section, you can find the supported email notifications. Notifications can be turned On/Off as per preference.

Localization

In this section, the labels displayed for the Lottery products can be customized.

Messages

In this section, the messages displayed while interacting with Lottery products can be customized.

Product Configuration

↑ Back to top
  • Once the initial configuration is completed, a Lottery product has to be created.
  • To create a new product go to WordPress Dashboard > Products > Add New
  • In the Product Type selection, select “Lottery”

Lottery

  • Fill in the following details in the section,

– Start Date

– End Date

– Minimum Tickets

– Maximum Tickets

– Minimum Tickets Per Order

– Maximum Tickets Per Order

– Number of Winner

– Ticket Price Type

– Regular price

  • By default, the ticket number will be automatically generated. If you want your users to choose their own ticket number, you can do so by enabling the “Allow Users to Choose Ticket Numbers” checkbox.
  • If you choose to generate tickets automatically, the ticket numbers can be generated in the following patterns,

i. Random – Ticket numbers will be generated randomly.
ii. Sequential – Ticket numbers will be generated in sequential order. The Starting Number, Prefix and Suffix can be customized.
iii. Shuffled – Ticket numbers will be shuffled and assigned to the user. The Starting Number, Prefix and Suffix can be customized.

  • By default, the winner of the lottery will be automatically decided. If you want to manually pick the winner for the lottery, you can do so by customizing the “Winner Selection Method” option.
  • Configure the Winning Item Selection Method as per your preference.
  • By default, Countdown Timer visibility will be decided based on Global Level settings. If you wish to override the settings for the product, you can do so by setting Product Level in the “Hide Countdown Timer Level Selection Type” option.
  • By default, Progress Bar visibility will be decided based on Global Level settings. If you wish to override the settings for the product, you can do so by setting Product Level in the “Hide Progress Bar Selection Type” option.

Q&A

By default, When Q&A is enabled and configured, it will apply to all the lottery products. If you want to customize the Q & A for a particular Product, then locate the “Q&A” section.

  • In Question Answer Level Selection Type select “Product Level”.
  • Enable the “Ask a Question before Purchasing Tickets” checkbox.
  • If you want to force your users to answer the question before participating, enable the “Force Users to Answer the Question” checkbox.
  • Enter your question in the “Your Question” field.
  • You can provide any number of options you want to your users. To add an option, click the “Add Answer Options” button.
  • To set the correct answer, enable the “Correct Answer” checkbox next to the option.

Predefined Buttons

To optionally offer multiple tickets for a single price, the Predefined Buttons can be used.

  • Enable the Enable Predefined Buttons checkbox.
  • In Select Discount Type select the type of discount you wish to offer.
  • In the Ticket Quantity, input the number of tickets which has to be purchased by the user. In the Discount field, input the discount value.
  • You can create any number of buttons for a single product.

Automatic Relisting

Finished Lottery Relisting

  • If you wish to relist lottery when it is successfully finished, you can do so by enabling the “Enable Finished Lottery Relisting” option
  • You can set the validity of the relisted lottery in the Set Relist Duration option.
  • If you wish to relist the lottery after a pause, you can do so by enabling the “Enable Pause Time to Relist” option.
  • You can set the validity of the pause duration in the Set Pause Time to Relist option.
  • If you wish to relist the lottery for an indefinite period, you can do so by setting the value as Limited in the Finished Relitst Type option.

Failed Lottery  Relisting

  • If you wish to relist a lottery when it has failed, you can do so by enabling the “Enable Relist for Failed Lottery” option.
  • You can set the validity of the relisted lottery in the Set Relist Duration option.
  • If you wish to relist the lottery after a pause, you can do so by enabling the “Enable Pause Time to Relist” option.
  • You can set the validity of the pause duration in the Set Pause Time to Relist option.
  • If you wish to relist the lottery for an indefinite period, you can do so by setting the value as Limited in the Finished Relitst Type option.

Instant Win Prizes

  • To offer Instant Win Prizes to your users for purchasing lottery tickets.
  • Instant Win Prize is applicable only for the “Automatic Ticket Generation” type.
  • Enable the Instant Win Prize checkbox.
  • Fill in the eligible ticket numbers one number per row and the information on the gift the user will be receiving.

Usage

↑ Back to top

Automatic Winner Selection

↑ Back to top
  • A user lands on the single product page. The user selects the number of tickets they wish to purchase and adds the product to the cart.
  • The users can also manually select the ticket number(s)/Allow the system to select a ticket for them(Based on Configuration).
  • Once the purchase is completed and the payment has been received, the users will receive the ticket number(s).
  • Once the Lottery end date has been reached, the winner will be automatically picked by the system and they will be notified via email.
  • If the winning item is configured “Products Inside the Site”, then the product associated with the lottery will be added to the user’s account in a separate order for free of cost.

Manual Winner Selection

↑ Back to top
  • A user lands on the single product page. The user selects the number of tickets they wish to purchase and adds the product to the cart.
  • The users can also manually select the ticket number(s)/Allow the system to select a ticket for them(Based on Configuration).
  • Once the purchase is completed and the payment has been received, the users will receive the ticket number(s).
  • Once the Lottery end date has been reached, the admin will be notified via email. The site admin will have to manually pick the winner(s).
  • If the winning item is configured “Products Inside the Site”, then the product associated with the lottery will be added to the user’s account in a separate order for free of cost.

Lottery Dashboard

↑ Back to top

Admin Dashboard

↑ Back to top
  • To access the admin dashboard go to WordPress Dashboard > Lottery > Lottery
  • From this dashboard, the site admin can view the following data
    1. Status of the Lottery
    2. Minimum and Maximum Tickets for a Lottery
    3. Number of Tickets sold in a Lottery
    4. Number of Participants in a Lottery
    5. Lottery Winning Type and Number of winners in a Lottery
    6. Admin can manage and see more details in each Lottery
    7. Admin can export the Lottery Details as a CSV File.

Customer Dashboard

↑ Back to top

To display the customer dashboard, place the shortcode “ [lty_dashboard]”. Your customer can access the following details from the customer dashboard,

  1. List of Participated Lotteries
  2. List of Won Lotteries
  3. List of Lost Lotteries

Widgets

↑ Back to top

To configure the wallet widgets go to WordPress Dashboard > Appearance > Widgets. The following widgets are available,

Lottery Products

↑ Back to top

Displays the Lottery products. The following filters are available

  • Future Lottery
  • Running Lottery
  • My Lottery

Lottery Search

↑ Back to top

Displays the Lottery product Search Widget.

Translation

↑ Back to top

Lottery for WooCommerce is translation ready, meaning you can edit the po files by which you can translate the text to any language. Steps to perform the translation are as follows. For example, a translation to French.

  • Download and install Poedit
  • Open the file lottery-for-woocommerce > languages > lottery-for-woocommerce.pot using Poedit.
  • Create a new translation file by clicking Create new translation button.
  • Choose the Source text and set its corresponding French text in Translation Text Area.
  • Save the changes.
  • Save the file name as lottery-for-woocommerce-fr_FR.po.
  • If you are using WordPress Version 3.9.13 or below, then in wp-config.php define the WPLANG as French. Syntax is define(‘WPLANG’, ‘fr_FR’);
  • If you are using WordPress Version 4.0 or above, then go to WordPress dashboard > Settings > General and select the Site Language as French.

FAQ

↑ Back to top

Q: Can we allow guest users to purchase the lottery tickets?

Yes, you can allow guest users to purchase the lottery tickets.

Q: How can i pick the manual Winners for closed lottery?

You can see Select Winner option in lottery post table for closed lottery. Please refer the below steps and screenshot to select the manual winners for closed lottery,Lottery -> Lottery -> Lottery product -> View Details

Q: Does the plugin has Instant Win Prizes option?

(i) Yes, it is available.

(ii) Instant Win Prizes work for both Automatic Ticket Generation type & User Chooses Ticket Type.

(iii) Instant Win Prizes settings available in Lottery product settings(Edit product page).

Note: Instant Win Prizes work only for display purposes and admin should award the Prizes and credit it to the winners manually.

Q: I’m not able to add more than 100 Instant Win Prizes on the Instant Win Prizes settings, it is taking too long to load. How can i fix this issue?

(i) We hope this issue occurs because of “PHP max input variables” and “PHP post max size” limit is not enough to store more data on your site. That is the reason for Instant Win loading issue when creating more rules.

(ii) We suggest you please check by increasing the “PHP max input variables” to 4000 or higher and “PHP post max size” to 100M or higher.

(iii) Also, please make sure your PHP memory limit is minimum 512M to use our lottery plugin.Please refer the below steps to see the current limits on your site WordPress Dashboard -> Tools -> Site Health -> Info -> Server

Q: Is the Email option available for Instant Win Prizes? 

(i) Yes, the email option is available for Instant Win Prizes.

(ii) Admin can enable Instant Win Prizes email for both admin and customers(who win the Instant Win Prize).

Q: We don’t want to allow the user to the competition who incorrectly answered the question. It is possible?

Yes, it is possible.

(i) Verify Answer Before Purchasing Lottery

– Using the Verify Answer Before Purchasing Lottery option, you can set an attempt limit for the user to answer the question.

– If the user selects the wrong answer and the attempt limit is exceeded then that user cannot be allowed to participate in the particular lottery.

(ii) Don’t Generate Ticket Number for Incorrectly Answered Question

We have another option(Don’t Generate Ticket Numbers for Incorrectly Answered Question) which allows the user to purchase lottery even if they select the incorrect answer. In this method, the ticket number will not be generated and an email will be sent to the user to inform them about the wrong answer selection.

Q: Is Lucky Dip option is available in User Chooses the Ticket Type?

Yes, it is available.

Q: Is there a way to run a contest without a start and end date but show a progress bar of how many tickets are left until the contest is ended?

1. Currently, it is not possible to run a lottery without assigning a Start and End date. Instead, you can set the end date to a longer duration and hide the countdown timer on the shop page and single product page.

(i) Lottery -> Settings -> General -> Shop page -> Hide Countdown Timer for Lottery Products on Shop and Category Pages.

(ii) Lottery -> Settings -> General -> Single Product Page -> Hide Countdown Timer for Single Product Page.

2. Also, the option is available to close the lottery when all the tickets have been sold.Lottery -> Settings -> General -> Close Lottery when All the Tickets have been sold.

Q: Is there any option available to set a preset value for the default quantity display in the Range slider for the quantity Selector?

Yes, an option is available to set a preset value(default quantity) in the Range slider for quantity Selector.

Settings

(i) Lottery -> Settings -> General -> Single product Page -> Quantity Selector Type -> Range Slider.

(ii) Lottery product Settings(Edit product page) -> Display Range Slider Based On -> Preset Tickets -> Set Preset TicketsmNote:Range slider for quantity Selector works only for Automatic Ticket Generation Type.

Q: How to select the winner when using Manually Pick Winners option?

i) If the admin selects the Winner Selection Method as Manual and the lottery time has ended after reaching the Minimum tickets value, then the lottery is moved to closed status. The Users will have to wait for the admin to manually pick the winner(s).

ii) Admin can Pick the winners manually in Lottery Post table Lottery -> Lottery -> Lottery product -> View Details

Q: How to Customize the “Lottery” word in Frontend?

(i) You can customize the messages and frontend display using Localization and Messages settings Lottery -> Settings -> Localization Lottery -> Settings -> Messages

(ii) Also, you can customize some messages and frontend display using Po file translation. For more information about Po file translation please refer to the “Translation” section on Lottery Documentation(https://woocommerce.com/document/lottery/).

Q: It is possible to set the ticket number as 00001 to 99999 in Automatic Ticket Generation type?

1. Yes, it is possible. If you set 5 in ticket length(Only number type) in Random type and set the maximum ticket as 99999, then it will generate the ticket numbers 00001 to 99999.Lottery -> Settings -> General -> Ticket Generation -> Automatic Random Ticket Generation Settings -> Ticket Length -> Set 5

2. Also, you can achieve this scenario using Shuffled or Sequential ticket type. If you set the Ticket Starting Number as 00001 and set the maximum ticket as 99999, then it will generate the ticket number 00001 to 99999.Shuffled and Sequential options are available in the lottery product settings(edit product page).

Q: Is Alphabet ticket number series(Example: A1, A2, B1, B2,………E1, E2) available in User Chooses the Ticket Type?

Yes, it is available.

Q: Can we give bulk tickets(based on ticket quantities) for a certain amount?

(i) Yes, it is possible.

(ii) We have a Predefined Buttons option to apply Fixed price or Percentage discounts based on lottery ticket quantities.

(iii) You can see the settings in Lottery product settings(Edit product page).

Q: Can Admin create the order for the user(Manual order) for lottery products?

– Yes, it is possible.
– Admin can create the manual order for both ticket generation type
(i) Automatic Ticket Generation Type
(ii) User Chooses the Ticket Type

Q: How to configure Cron for Lottery?

Lottery for WooCommerce Requires Server Cron or WP Cron in order for the plugin to work.

1. Server Cron

(i) Please follow the below steps to configure the server cron,

1. Login to the cPanel of your site.
2. Locate “Cron Jobs” within the cPanel
3. Under the “Add New Cron Job” section, fill in the following data,

a. Common Settings

In this section, you can set up how frequently the Cron should run. For Example, if the value is set as “Once Per Minute”, then the cron will run once every minute. Once the cron is triggered, the following activities will be updated,

– Starting Future Lotteries
– Ending Closed Lotteries

b. Lottery Plugin Server Cron Settings

Also, please select the Server Cron option in Lottery plugin Settings,

Lottery -> Settings -> Advanced -> Cron -> Cron Type -> Server Cron.

c. Update Cron Command

Please check by updating the server cron using below URL format,

Update Cron Command URL Format

Your site URL(http://www.your-domain.com/) with Update command(?lty_lottery_cron=update)

For Examplehttp://www.your-domain.com/?lty_lottery_cron=update

2. WP Cron

Lottery -> Settings -> Advanced -> Cron -> Cron Type -> WP Cron

– Set time for Cron Trigger Frequency
– Save the settings

For more information about WP Cron please refer to the documentation(https://woocommerce.com/document/lottery/)

Also, please follow the below steps to know about the last update of cron information in our plugin.

Lottery -> Settings -> Advanced -> Cron Information

Q: Can we re-use the old lottery products?

Yes, we have a Relist option to reset the previous lottery data and you can start the old lottery as a new lottery.

Q: Why is my lottery failing and how can I start the lottery again with the same purchase data?

Lottery products fail only if the end time has been reached without reaching the Minimum ticket value.We have the Extend option which is available in Lottery Product Settings(Edit product page). Using the extend option you can extend the lottery without losing the purchased ticket data. Extend option will be displayed only for the failed lottery.

Q: Can we Export the lottery tickets?

Yes, we have the Export CSV option which is available in the lottery post table.

Questions and Feeback

↑ Back to top

Have a question before you buy? Please fill out this pre-sales form.

Already purchased and need some assistance? Get in touch with us via the Help Desk.