Skip to content

TaviDorvos/PromotionalCampaignPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PromotionalCampaignPlugin

This project is a plugin I've made for WordPress using PHP, jQuery and Ajax. For design I've used only Bootstrap and a little bit of CSS, trying to focus only on functionalities.

This plugin is helping WordPress users to easily implement a promotional campaign to their websites without coding too much. The

Functionalities & Screenshots

After a registration of an user, all participants who have registered with one or multiple promotional codes, along with his details, will be displayed on Participants menu exactly on Participants field on Dashboard. There is a column where the admin can see all the used codes of the participant, if it's a winning one or not and the registration date. 5 winners will be drawn randomly by pressing the button "Draw Winners" (the number of winners can be changed) and an email will be sent to the winners on the inserted email. After the draw every winning code will be crypted using MD5. participants codes-used

On Prizes sub-menu, an admin can add a prize along with some informations such as: the name, description, available stock and an image of the prize. Of course the prize can be deleted or modified. prizes edit-prize

On Raffle Draw submenu will be a table with all the draws that have been made so far. draw-dates

By clicking on the date of the raffle you can see all the winning codes and if the winners choosed their prize already or not. You can also see if the informations about the winner were been exported to an excel for delivering the prize. The export can be made easily by clicking the Export button.
If a winner has choosed his prize the response will return under a clickable green "yes" and you can see all the informations about the winner and of the choosen prize, otherwise will be returning as unclickable red "no". winners winner-info

Of course, there will be a Statistics page where you can see some statistics about your campaign. This part is still under develop. Statistics

Shortcodes

  • codes_campaign_contact_form
    This form will be the registration one, where the participants need to fill it with their informations and the available code they have. front-page

  • winning_code_form
    This form has only one field and will accept only the winning codes in order to redirect to the choosing prize page. winning-page

  • choosing_prize_form
    This is the choosing prize page where only the participants who have inserted their winning code to the last shortcode can access it and will let the person to choose their prize (only if is available, that means the stock has to be greater than 0, otherwise will turn into grey, unselectable). choose-prize

How to use?

  1. Download or clone this repo to your 'plugins' directory from your website.
  2. Enter to your dashboard and select Plugins. There it will be a plugin named Codes Campaign.
  3. Click on activate and will appear 2 more new fields into your menu called Participants, Statistics and every table needed will be created automatically to your MySQL database.
  4. There are 3 shortcodes you gonna implement wherever you want into your website.
    • codes_campaign_contact_form - registering form for the users
    • winning_code_form - winning form for the winning codes in order to choose their prize
    • choosing_prize_form - choosing prize after the code is validated as a winning one
  5. In order to use shortcodes and display the forms you have to write the following code:
    <?php echo do_shortcode('[the_shortcode_you_want]'); ?>

About

Promotional Campaign Plugin made for WordPress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published