We got quite a few inquries to display countdown timer and progress bar not only on single lottery page but in product archive / loop. This is covered in our documentation, FAQ item no 12 but we also made handy little plugin which enables those two code snippets with just few clicks and no need to edit functions.php file. You can download it here.
End result is shown on screenshot below. Plugin can be your base for further customizations.
Our Drop / Raise Price plugin is available on WordPress.org for free, check it on this url https://wordpress.org/plugins/drop-prices-for-woocommerce/ Documentation for plugin is available here. For those who have purchased plugin while being available on CodeCanyon we can suggest to download this new version to get future updates.
Resources and ticket limits – are there any limitations for WooCommerce Lottery? We cover this topic in our tutorial about plugin limits. WooCommerce Lottery plugin is basically limited with hosting solution that your WordPress installation runs on. There is no limit how many tickets can be sold at once or how many numbers can you list for lottery but usually on lower spec hosting (especially on cheaper shared hosting) you will hit limit around couple thousands ticket purchases – orders (around 3 000 to 5 000 orders). This would be same as if you would run regular WooCommerce web shop and problem is easily resolved by upgrading your hosting (you can contact us for suggestion).
There are couple of limits you can hit (for this example we will consider WordPress has only WooCommerce and our plugin installed and nothing else) – how many different users (orders) have purchased tickets in your store, more orders mean you need more resources for order data and its custom fields. Another is having a lot of tickets for a lottery say 1 million – this is not problem unless you want pick number table displayed which becomes cumbersome and we strongly suggest agains that (just use randomly assign ticket number instead). Sometimes lot of tickets cause JS issue in backend for auction history export table – for that we have option in Lottery Settings to disable this feature.
Cronjob that we suggest you install is lightweight and is used to finish lottery on time in case WordPress does not have enough traffic to run its internal cronjob. For busier websites this can be skipped, everything will work fine and in most cases lotteries will be ended on time.
When planning big lottery site with many orders you need to keep on your mind that except orders we log data to two log tables used by our plugins called wc_lottery_log and wc_lottery_pn_log which should not be big problem since only integer values are logged to those tables.
Another thing to consider is raising PHP memory limit using WordPress constants. Sometimes, it’s a good idea to tailor WordPress’ memory allocation separately for the frontend and backend. That’s where WP_MAX_MEMORY_LIMIT comes in. WP_MAX_MEMORY_LIMIT allows you to set a different memory limit for WordPress’ administration dashboard. This is useful because certain administration tasks require more RAM. Below is an example of how you can use WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT together.
In general cheapest dedicated server (quad core cpu and 8GB – 16GB memory, normal disk drive no need for SSD) should enable site owner to run big lottery website with hundreds daily orders without performance issues. If you go for cloud solution you will need to get some mid priced solution since from our experience cheap cloud / vps proved to be problematic (probably due to heavy resource throttling done by their service providers). Further scaling can be done by separating app and db and have them on separate servers / vps or cloud instances.
We strongly suggest that before going to production you test all of these cases, for example try to purchase 1 million tickets or do some stress testing and see what is happening in your particular setup. You do not want to end up migrating website to new setup during marketing campaign and fixing things while orders are coming in.
Other than that we can suggest keeping number of active plugins to minimum, do some WordPress / WooCommerce optimization and use 3rd party / external SMTP server for mail notifications (offload main app server and better inboxing rates).
Easiest way to access ticket system is to go to login with account you used to make purchase, then click on My Account, find orders link in left menu and you will notice Get Support button in row that shows your order for add on. Click there and open your support ticket. Please check this announcement.
We had a lot of inquries about missing icons in product type column WooCommerce product list. Users were asking why icons vanished in WooCommerce product list and how can they get it back. From WooCommerce 3.4.0 update, WooCommerce developers removed that column in product list (as a result of users’ feedback).
Every now and then you need to modify plugin or theme’s templates, add some code snippet or change couple things using CSS. Best way to include your changes and make them update proof is to do it via child theme. Child theme is special theme that loads parent theme files from parent theme folder and your customized files from child theme folder like templates and styles.
Using code snippet plugins is not advised due to performance penalty they cause. Those plugins save code snippets to DB then on each user request these plugins check databaseand load code then execute it. You want to have code ready for execution early in request (so best is to have code in your child theme) and not doing additional database request to retriece and then execute code. There is also possibility for exploits with these plugins.
You need to have base (parent) theme like StoreFront (or Avada, Divi, any WooCommerce compatible theme will do just fine) and then you create new folder wp-content\themes\mycustomtheme\ with its own style.css and functions.php
Here is how to create child theme in 4 easy steps:
Step 1: create child theme folder for example /wp-content/themes/my-first-child-theme
Step 2: in that folder create style.css and functions.php filse, in style.css add code below:
Step 3: go to Appearance -> Themes and activate your newly created child theme.
Step 4: you can now add your modified templates to child theme folder, code snippets to your functions.php and custom CSS to your child theme’s style.css
Once you have customizations in your child theme you can now update plugin or theme without worries that your modifications will be lost during an update (theme or plugin update). ZIP with child theme described in this tutorial can be downloaded here (it will work only if you have installed StoreFront theme).
For example you want to edit Simple Auction template from folder \woocommerce-simple-auctions\templates\single-product\bid.php – copy it to wp-content\themes\yourchildtheme\woocommerce\single-product\bid.php and make changes there. If you do not see woocommerce folder in your child theme then create it. You will need some kind of file manager best is to use FTP client (for example FileZilla or file managed included in your hosting control panel).
How child theme templating works from https://zenwp.co/child-theme/
We have extensive archive of code snippets and modified plugin templates on our Pastebin archive.
Today we have released version 2.0.0 for WooCommerce Lottery and Pick Number Mod addon which include full Elementor support. In today’s update there were few minor changes and fixes too and version has been bumped to v2.0.0 for both plugin and addon. To edit lottery template with Elementor you need Elementor (free) plus Elementor Pro (paid) or PRO Elements (free).
Couple of screenshots how it looks like Elementor support:
WooCommerce Lottery and Pick Number addon natively supported in Elementor
Easiest way to create your single lottery page with Elementor is to create new template for single product. Click on wp-admin menu entry Templates -> Add New and you will get modal popup like on image below:
There you can now create your new single lottery product page – add, rearrange and style Woo Lottery elements like countdown, progress bar, lottery winner, lottery info and Pick Number Mod elements like ticket numbers, lucky dip and question / answers.
In order not to have template applied to all single products, you need to tag or categorize lotteries and then apply template only to tag or category your lotteries are tagged / categorized with.
Make sure that in Elementor Settings -> Experiments beta option “Landing Pages” is set to “inactive” otherwise you will have issues with lottery base page. See screenshot below:
If you miss WordPress widgets when searching widgets in Elementor you might need to disable this experiment – Hide native WordPress widgets from search results. This option is located in Elementor Settings – Experiments (and was introduced in Elementor version 3.5.0 so if you have older version you will not have this issue). See screenshot below.
Make sure to check our article about Elementor Loop Templates Performance Issues since this could slow down your site. This is new feature in Elementor which should be used with special care and avoided if possible.
We have updates ready for WooCommerce Simple Auctions, WooCommerce Lottery and Pick Number Mod addon for Woo Lottery. Feel free to update it if you need new features or have problems with issues that are fixed in latest versions. Detailed changelog is in plugin documentation and for Pick Number Mod addon can be found here.
We have disabled CodeCanyon integration due to problems with their API and now you need to register account here https://wpgenie.org/my-account after which you need to open ticket at https://wpgenie.org/support There you will have option to open ticket for item purchased on CodeCanyon (and you will be asked to enter purchase code after which item will be loaded and support ticket could be submitted) or for order made on our website.
After creating account click on “Create a ticket”
Just hit next…
And click next again…
Here you will need to copy paste purchase code from CodeCanyon and click next
In case you have purchased some addon from our website you can access ticket support system by going to My Account -> Orders and then in order row you will have option to download addon or get support. Please consult screenshot below.
List of WordPress locales useful for multilanguage and translations. It can be set in WordPress Settings or in wp-config.php using constant WPLANG like: