This contribution places a infobox in either the left or right column of your site inviting visitors to enter a prize draw competition.
When visitors click on the invite they are taken to the prize draw page.
They then simply enter their name and email address to enter. Their entry is checked, so that they cannot enter more than once.
If like me, you want the prize draw to encourage visitors to look around your site, you have an option to display a qualifing question.
The question is multiple choice, and I base the question on a product sold on my site, so the visitor has to look around the site to find the answer.
The prize draw is configurable in Admin so that it can be offered to logged in customers, guests, or both.
There is a new report, in order to view how many people have entered the prize draw.
This is my first contribution, so please go easy on me. I am sure that you can improve things, especially the selection of the product in the Admin page.
To see this is action, please visit our site at http://www.theuniquegiftemporium.co.uk
Legend: 
Download

Report
Changes:-
Updated Set Up instructions.
Changes:-
Updated Set Up instructions.
Added code to include Entrants Name to winner email; and in admin email.
Added code to include Entrants Email address to winner email; and in admin email.
Added code to better format email notification.
If updating just replace: admin/stats_prize_draw.php and admin/includes/languages/english/stats_prize_draw.php
This is a complete package.
Changes:-
Changed continue button at page bottem to java back button.
Added code to show Model #
Added code to show Value (i.e.) cost in competition.php and help_prize_draw.php
If updating just replace:
catalog/help_prize_draw.php
catalog/competiton.php
This is a complete package.
I do apologize for all the different releases. I’m new to coding and learning as I go along.
I noticed that when the currant prize draw had expired the prize draw help still showed up when clicking Enter To Win!!!
In this version I added code that prevents this from happening, if the link is clicked and there isn’t a current prize draw running, the link returns to the default page.
If updating just replace: catalog/help_prize_draw.php
Changes:-
Bug fix: Fixed the bug where when the customer was logged in the prize discription wouldnt display.
If updating just replace catalog/competition.php and catalog/help_prize_draw.php
This is a complete package.
I forgot to include the
catalog/includes/boxes/information.php to the files for new install in 1.7, so added it. SORRY
I went ahead and added the code to the installer to complete it as supplied by Johnnybebad via the forum. and updated the instructions to reflect the change.
This is a complete install
Added a continue button to page bottem, if
updating just replace catalog/help_prize_draw.php
This is a complete package
Added code to include a picture of the Prize, prize name and descrition in the help_prize_draw.php, As I have the store set to not alow guest to enter drawing I thought that seeing the Prize while reading the Rules might help them decide to register.
Added some new defines to help fill the text in catalog/includes/languages/english/help_prize_draw.php
This is a complete package
Changes:-
Added files so if clean install can just copy over new files.
This is a complete package.
I left out a few things in the instructions in the file below. All fixed now.
This is the complete package.
The previous package by me v1.4 loaded a java popup help window. A few customers complained that if they entered the prize draw rules from my site map and clicked (close window) they left the site.
So in this version I converted the gift registry by SammySolutions.com ltd help file to work with prize draw.
Full package
Thanks to all involved in this great mod and to Carl Skerritt for introducing it
This is a complete package of files.
Remember to back up your files and database first.
Changes:-
Admin
1. Entry of dates using java calendar rather than having to type them in.
2. Entry values for Answers A, B and C rather than including in as part of question
3. E-mail sent to winner with auto filled store information
SHOP
1. Automatic end date of competition displayed
2. Radio buttons displayed to select answer rather than typing a value.
3. Duplicate entry error fixed
General rewrite of instructions and changed text to make it more general, i.e win the goblets text has been replaced, with win thios fabulous prize.
Please note as I am not knowledgeable enough at the moment to update the database installation script I have given manual instructions regarding the three entries that need to be made.
Make sure you enter them correctly as I had a space in front of my first entry COMPETITION_ANSWER_A in the database, this in turm made it not display in the catalog/competition.php file, I had to delete the entry in the database and insert the correct information to get it to work, note just correcting the error by deleting the space and updating the database did not work for me.
Hi, updated the instructions and included a full pacakage of files.
Those installing this on a virgin shop (no mods installed)
Should install the files to the relevant places install the database, and everything should be fine.
This has been tested oon V2.2 Rc2 and I have re-installed this following my instructions only.
Thanks to everyone who has contributed to this great mod.
Working on instructions and files for radio buttons and java calender date installer.
Just added radio buttons for options A, B and C on competition page.
Values A, B and C can be entered in admin
This is my first modification and I have tested the files on osc version 2.2 RC2.
Included is how to update and install from scratch.
Please note that the auto database installer has not been modified to include the extra 3 entries required for this mod to work, but I have included on what needs to be added where.
As this is my first attempt, and I have tested it so fingers crossed
This contribution is for anyone who can't get the automated database update to work, like me.
These scripts are for installing this from scratch, if your updating then this isn't the code your looking for.
Plain Text File inside the ZIP.
This packages fixes a minor bug found with the checking of a duplicate prize draw entry. This package only contains the updated competition.php.
This version contains major changes to the Admin section, `stat_priz_draw.php`.
Added the following new functionality:
- Ability to exclude individual entries. This allows you exclude entries from being eligable for being picked as a winner.
- Ability to delete individual entries from a competition. Useful for removing those test entries.
- Abilty to add customers who have completed orders within the competition period to the competition.
- Ability to pick a random winner.
- Criteria a combination of valid entries (e.g. they got the qualifing question correct) and included (e.g. not excluded by you manually using the above new feature)
- Can re-select a winner. Useful if you don't want the selected entry to be the winner. (not exactly fair, but it's your competition!)
- Ability to email the winner upon selection.
- Ability to delete all entries for a specific competition.
- Ability to create a new competition. Drop down box to pick the prize from your product catalog, plus enter dates and qualification question/answer. All this does is update the configuration options, but makes it a bit simipler.
- plus a minor bug fix to the competition.php
This fixes a reference to my custom box class in the /boxes/competition.php which I forgot to change back to the standard osc box class before I uploaded the contribution.
This is the full package.
This contribution places a infobox in either the left or right column of your site inviting visitors to enter a prize draw competition.
When visitors click on the invite they are taken to the prize draw page.
They then simply enter their name and email address to enter. Their entry is checked, so that they cannot enter more than once.
If like me, you want the prize draw to encourage visitors to look around your site, you have an option to display a qualifing question.
The question is multiple choice, and I base the question on a product sold on my site, so the visitor has to look around the site to find the answer.
The prize draw is configurable in Admin so that it can be offered to logged in customers, guests, or both.
There is a new report, in order to view how many people have entered the prize draw.
This is my first contribution, so please go easy on me. I am sure that you can improve things, especially the selection of the product in the Admin page.
To see this is action, please visit our site at http://www.theuniquegiftemporium.co.uk