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.
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. 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).
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.
Couple of screenshots how it looks like Elmentor support:
Easiest way to create your single lottery page with Elementor is to create new template for single product. There you can now 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. Get WooCommerce Lottery here and Pick Number Mod addon here.
We had couple of cases when, during access to ticket system, users might get 401 API forbidden error message. Here is quick explanation of what is really happening here and what is causing this error. Since our support system is integrated via CodeCanyon / Envato API to check and verify your purchase / licence you need to approve API access for your account. This is normally done during registration process (when you open our support page on this URL https://wpgenie.org/support without being logged in). When this process is skipped, support system cannot access data via API for your account and system displays that error.
To resolve that problem log out from Envato / CodeCanyon and then go to https://wpgenie.org/support click login and allow API access. Once this is done and you have valid purchase you will be able to open ticket.
Have you ever purchased lottery or entered lucky draw? Every now and then there is occasion to reward your customers with prizes or give opportunity to enter the draw for an item (with huge discount or for just a fraction of real price). E-store owners who run their webshops on WooCommerce can improve their user experience, boost sales and get more traffic with thousands of plugins and practically with couple of clicks add new premium feature to their store. Our WooCommerce Lottery plugin does just that – implements lotteries in WooCommerce based store. We will describe here what do you need to setup lottery in your webshop which runs on Woo.
Here we will assume you allready have working WordPress website hosted somewhere (if not contact us for help with hosting), domain name and WooCommerce installed with payment processor set up. Other requirements are true cronjobs (just ask your host support to setup cronjobs needed) if you want to have reliable way to send email notifications and end lotteries on time.
Now to get your first lottery online you need to follow couple of simple steps:
you need to purchase and download WooCommerce Lottery plugin here
after plugin activation you will need to go to Producst -> Add new product to setup your first lottery on your website. This part should look like screenshot below. Here you populate details like descriptions and prize for your lottery / competition / draw, min and max number of tickets, max tickets per user, number of winners, price, start / end date, image etc.
Once you publish your first lottery your customers will be able to participate in the draw after they purchase and complete order for ticket(s). On this link here you can see our demo website example and how lottery will look like for customer (this depends on your WordPress theme ofcourse). This part is also customizable via WooCommerce templates and theme’s custom CSS.
So your lottery is running till the date you set in its details. Right after end date and if you reached your min tickets limit plugin will draw winner or winners using PHP’s mt_rand function which provides solid randomization and gives everyone equal chance for winning. Winner(s) will get email notification about winning the prize, others will get better luck next time notification while site owner gets notification about finished or failed lottery. Here site owner usually also contacts winner to define details and deliver the prize.
Some owners want ticket pick or question / answer feature (or manually choose winners when you use 3rd party number generator) which can be added via WooCommerce Lottery Pick Ticket Number Modification (here is how pick number mod looks like). Others would like to end lottery and draw prize as soon as all tickets are sold, change countdown format or disable mixing lotteries with normal products – this is just a matter of changing a setting in Lottery Settings (there are plenty of settings which allows quick customization).
If you installed Lottery plugin and have some questions or encountered a problem which you cannot solve yourself there is always documentation which covers all the details and support which will help you with issues. In case you have a question drop us mail here.