# Magento 2 Competition or Prize Draw with Social Booster

### <span style="color: #3b82f6;">Installation and User Guide for Magento 2 Competition or Prize Draw with Social Booster Extension</span>

**Table of Contents**

1. [*Installation* ](#bkmrk-installation)
    - *Installation via app/code*
    - *Installation via Composer*
2. [*Configuration Settings for Competition* ](#bkmrk-configuration-settin)
    - *General Settings*
    - *Social Booster - Facebook Settings*
    - *Social Booster - Twitter Settings*
    - *Email*
3. [*Create/Edit/Delete Custom form fields* ](#bkmrk-create%2Fedit%2Fdelete-c)
    - *View Custom Field Screen*
4. [*Create/Edit Competition* ](#bkmrk-create%2Fedit-competit)
    - *Create Competition*
    - *Add Fields in Competition Form*
    - *Add Custom Fields*
    - *Design*
    - *Facebook Settings*
    - *Twitter Sharing*
    - *Email Template for Competition Entry Email*
    - *Choose Winner*
5. [*Competition Entrants* ](#bkmrk-competition-entrants)
    - *View Entrants*
6. [*Front-end Site View* ](#bkmrk-front-end-site-view)
    - *Competition Form*
    - *Social Sharing Links on the Form*
    - *Competition Entry Confirmation Email*
    - *Newsletter Subscription Confirmation Email*
    - *Competition Winner Confirmation Email*

### <span style="color: #3b82f6;">Installation</span> [](#bkmrk-)

- <span style="color: #f97316;">**Installation via app/code:**</span> Upload the content of the module to your root folder. This will not overwrite the existing Magento folder or files, only the new contents will be added. After the successful upload of the package, run below commands on Magento 2 root directory. ```php
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    ```
- <span style="color: #f97316;">**Installation via Composer:**</span> Please follow the guide provided in the below link to complete the installation via composer.

<p class="callout success">[https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer](https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer)</p>

### <span style="color: #3b82f6;">Configuration Settings for Competition</span> [](#bkmrk--1)

Go to **Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; Competition**

#### <span style="color: #f97316;">General Settings</span> [](#bkmrk--2)

- **Enabled –** Select "Yes" or "No" to enable or disable the module.
- **License Key –** Please add the license for the extension which is provided in the order confirmation email. Please note license keys are site URL specific. If you require license keys for dev/staging sites then please email us at <support@scommerce-mage.com>.
- **Enable Captcha on Competition Form –** Please select "Yes" or "No" to enable/disable captcha on the competition form.
- **Subscription to Newsletter on Form Submission –** Please select "Yes" or "No" to enable/disable newsletter subscription on the competition form.

[![image - 2025-06-11T134950.592.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t134950-592.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t134950-592.png)

#### <span style="color: #f97316;">Social Booster - Facebook Settings</span> [](#bkmrk--4)

- **Enable (Yes/No) –** Please select "Yes" or "No" to Facebook sharing for competitions global level.
- **Facebook Fan Page –** Please add full URL of your Facebook page for example [www.facebook.com/scommercemage](http://www.facebook.com/scommercemage).
- **Facebook App ID –** Please add Facebook application Id this can be obtained by creating app by clicking on the following URL ([https://developers.facebook.com/apps](https://developers.facebook.com/apps)) after login to your Facebook account.

[![image - 2025-06-11T135028.041.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135028-041.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135028-041.png)

#### <span style="color: #f97316;">Social Booster - Twitter Settings</span> [](#bkmrk--6)

- **Enable (Yes/No) –** Please select "Yes" or "No" to Twitter for competitions on global level.
- **Twitter Account –** Please add unique id of your twitter account. For example our twitter account is [http://www.twitter.com/scommerce/mage](http://www.twitter.com/scommerce/mage) so you just need to put Scommerce Mage.

[![image - 2025-06-11T135124.187.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135124-187.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135124-187.png)

#### <span style="color: #f97316;">Email</span> [](#bkmrk--8)

- **Enable (Yes/No) –** Please select "Yes" or "No" for competition email.
- **Email Sender (Textbox) –** Please add email sender for competition email.
- **Email Template for competition entry email –** Please select dropdown to select default global level competition entry email template from the available list of templates. A default template will be added with the extension install.

[![image - 2025-06-11T135205.352.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135205-352.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135205-352.png)

### <span style="color: #3b82f6;">Create/Edit/Delete Custom form fields</span> [](#bkmrk--10)

You can create, update and delete custom fields from **Admin &gt; Competition &gt; Custom Fields.** The grid will have below columns:

- **ID –** This will be custom field code.
- **Field code –** This will be custom field code.
- **Field Title –** This will be custom field title.
- **Field Type –** This will be custom field type.
- **Action –** Edit/Delete

[![image - 2025-06-11T135244.550.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135244-550.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135244-550.png)

- <span style="color: #f97316;">**View Custom Field Screen -**</span> Click on "Add New Custom Field" will redirect you to detailed view custom field page and by filling all the required details you can create a new custom field. It will have below tabs: -

<span style="color: #3b82f6;">**Field Information**</span>

- **Field Code (text box) –** This will be mandatory and unique. No spaces or special character will be allowed, and it will be all lower cases just like attribute code and will not be editable once created.
- **Display Name/Title (text box) –** Name/Title for the custom field which will be displayed on front end in competition form.
- **Type (drop down) –** This will be a drop down to select the type of the field, and it won't be editable once created. 
    - Text
    - Text area
    - Checkbox
    - Radio Button
    - Dropdown
    - Multi Select
    - Date Picker
- **Maximum Character allowed (text box) –** This will be only visible, if the type is Text or Text area. User will be able to define max character for the field.
- **Options(grid) –** This will be only visible, only if the type is Checkbox or Radio or Dropdown or Multiselect. User will be able to relative options here. The grid will have the following columns: - 
    - Is Default
    - Value
    - Label default store view
    - All other available store views
    - Delete/Remove (action)
- **Answer (text box) –** This will be an optional field for adding answer. If the type is date picker then the date format for answer should be correct.

[![image (71) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/kjpimage-71-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/kjpimage-71-1.png)

[![image - 2025-06-11T135449.284.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135449-284.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135449-284.png)

### <span style="color: #3b82f6;">Create/Edit Competition</span> [](#bkmrk--14)

You can update, delete and create a new competition from **Admin &gt; Competition &gt; Competitions.**

**The grid will have below columns: -**

- ID – This will be competition ID. System generated
- Name – This will be competition name/title
- URL Key – This will be competition URL Key
- Store View – This will be a store view drop down for to select stores for competition.
- Status – Competition status (active/disabled)
- Start date – Start date for the competition
- End date – End date for the competition
- Created date – Created date for the competition
- Updated date – Updated date for the competition
- Action – Edit/Delete
- **Create Competition -** Click on "Add New Competition" will redirect you to detailed competition page. It will have below tabs: -

[![image - 2025-06-11T135539.238.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135539-238.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135539-238.png)

#### <span style="color: #f97316;">General</span>

- Competition Name - Enter the competition name. The name will appear on the front-end competition form.
- Competition URL - Enter the URL. This URL will be used to open the completion form on the front-end.
- Competition Description - Add the description. This description will appear on the front-end competition form.
- Competition Store – Multi select filled with values.
- Include Name in Form – Dropdown, Include Name in Form (Yes/No)
- Competition Status – Drop Down, Competition Status (Active/Disabled)
- Competition Meta Title - Enter meta title
- Competition Meta Description – Add meta description.
- Competition Meta Keywords – Keywords
- Competition Start Date – Date picker
- Competition End Date – Date picker
- Competition form Submit Button Label

[![image - 2025-06-11T135644.750.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135644-750.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135644-750.jpg)

- <span style="color: #f97316;">**Add Fields in Competition Form -**</span> To add fields in competition form go to **Admin &gt; Competition &gt; Competitions &gt; Add Fields in Competition Form.** It will have the fields: -
    
    
    - ID
    - Field Title
    - Field Type
    - Action
    - Sort Order

[![image - 2025-06-11T135737.978.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135737-978.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135737-978.jpg)

- <span style="color: #f97316;">**Add Custom Fields -**</span> You can add fields from **Admin &gt; Competition &gt; Competitions &gt; Add Fields in Competition Form &gt;** Click on **"Add Fields**" **&gt;** Select fields and Click on "**Add Selected Fields"**. This screen will have all the available custom fields in a grid form and user will be able to select fields to add to the competition form.
    
    
    - Checkbox to select fields
    - Field Code
    - Field Name/Title
    - Field Type
    - Field Position – This will be editable numeric field and will decide the display position for the competition form. This is specific to competition form.

[![image - 2025-06-11T135841.415.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135841-415.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135841-415.png)

- <span style="color: #f97316;">**Design -**</span> This tab will display two drop downs with all the static block where user will be able to select static block for the competition entry page and success page from **Admin &gt; Competition &gt; Competitions &gt; Add Fields in Competition Form &gt; Design.**
    
    
    - **Static block for Competition Entry Page –** Please select static block for competition entry page on front end.
    - **Static block for Competition Entry Thank you page –** Please select static block for competition entry page on the front end.

[![image - 2025-06-11T135916.844.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t135916-844.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t135916-844.png)

- <span style="color: #f97316;">**Facebook Settings –**</span> This tab will only be visible, if enabled from **Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; Competition &gt; Social Booster-Facebook settings**
    
    
    - **Enabled (yes/no) –** Please select "Yes" or "No" for Facebook sharing for the competition.
    - **Facebook Share Name –** Please add name/title for the promotion which appears in bold on the sharing popup. For more info see [https://fbdevwiki.com/wiki/FB.ui](https://fbdevwiki.com/wiki/FB.ui)
    - **Facebook Image upload for sharing pop up –** Please upload image for the promotion which appears on the sharing poup. For more info see [https://fbdevwiki.com/wiki/FB.ui](https://fbdevwiki.com/wiki/FB.ui)
    - **Facebook Share Caption –** Please add caption for the promotion which appears above share description and below the name of the promotion on the sharing popup. For more info see [http://fbdevwiki.com/wiki/FB.ui](http://fbdevwiki.com/wiki/FB.ui)
    - **Facebook Share Description –** Please add description for the promotion which will appears above share description and below the name of the promotion on the sharing popup. For more info see [http:fbdevwiki.com/wiki/FB.ui](http://fbdevwiki.com/wiki/FB.ui)

[![image - 2025-06-11T140121.801.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t140121-801.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t140121-801.png)

- <span style="color: #f97316;">**Twitter Sharing –**</span> This tab will only be visible, if enabled from **Admin &gt;Stores &gt; Configuration &gt; Scommerce Configuration &gt; Competition &gt; Social Booster- Twitter Settings**
    
    
    - **Enabled (yes/no) –** Please select "Yes" or "No" for Twitter sharing on competition form.
    - **Twitter Text –** Please add description of your promotion which appears on the sharing popup.
    - **Hashtags –** Please add hashtag of your promotion which appears on the sharing popup at the end of the description.

[![image - 2025-06-11T140321.507.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t140321-507.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t140321-507.jpg)

- <span style="color: #f97316;">**Email Template for Competition Entry Email –**</span> This will be a dropdown to select default competition level competition entry email template from the available list of templates. If nothing selected, then it will pick up template defined in section **Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; Email**.
- <span style="color: #f97316;">**Choose Winner –**</span> It generates winners only when the competition has ended. This will be determined by competition end date and will have below two elements.
    
    
    - **Number of winners –** Please add number of winners you would like to generate for the competition.
    - **Generate Winner Button –** To generate a winner, click on "Generate Winner" button. It resets manually generated winners and selects a new winner randomly. This is a random process, and doesn't validate any answer or entries.

[![image - 2025-06-11T140403.840.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t140403-840.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t140403-840.jpg)

### <span style="color: #3b82f6;">**Competition Entrants**</span>

You can generate winner manually from Entrants grid by selecting "Mark Winner" under "Actions" from **Admin &gt; Competition &gt; Entrants.** Also you can delete and view entrants by selecting "View" from "Actions" . The grid will have below columns:-

- User Email
- Username
- Competition Name
- Store
- Winner
- Date Entered
- Action

[![image - 2025-06-11T140604.300.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t140604-300.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t140604-300.jpg)

- <span style="color: #f97316;">**View Entrants –**</span> To view entrants details go to **Admin &gt; Competition &gt; Entrants&gt; Select "View",** it opens View Entrants page from where you can select winner ma by selecting "**Yes**" from Mark Winner drop-down. It selects winner manually and it doesn't validate any answer or entries.

[![image - 2025-06-11T140703.829.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t140703-829.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t140703-829.jpg)

### <span style="color: #3b82f6;">Front-end Site View</span> [](#bkmrk--25)

- <span style="color: #f97316;">**Competition Form -**</span> When you create a competition from **Admin &gt; Competition &gt; Competitions**, then based on defined URL key it opens the competition on the front-end site with the social sharing options, which you can see in the below screen grab.

[![image - 2025-06-11T140801.822.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t140801-822.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t140801-822.jpg)

- <span style="color: #f97316;">**Social Sharing Links on the Form -**</span> After entering into the competition when you share the competition on the social sites, it increases the possibility to win the competition. It allows you to enter five entries in the same prize draw competition by following / liking / sharing the prize draw or competition on Facebook and Twitter, also you can enable/disable the social sharing options from the back-end.

[![image - 2025-06-11T140839.059.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t140839-059.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t140839-059.jpg)

- <span style="color: #f97316;">**Competition Entry Confirmation Email -**</span> It sends an email to users to confirm their entry into the prize draw or competition.

[![image - 2025-06-11T140911.447.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t140911-447.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t140911-447.jpg)

- <span style="color: #f97316;">**Newsletter Subscription Confirmation Email -**</span> When you select "Yes" for " Subscription to Newsletter on Form Submission " from **Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; Competition,** then it sends newsletter subscription confirmation email to users.

[![image - 2025-06-11T140954.121.png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t140954-121.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t140954-121.png)

- <span style="color: #f97316;">**Competition Winner Confirmation Mail**</span>

<span style="color: #f97316;">**[![image - 2025-06-11T141030.243.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-11t141030-243.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-11t141030-243.jpg)**</span>

If you have a question related to this extension please check out our [**FAQ Section** ](https://www.scommerce-mage.com/magento-2-competition-module-with-social-booster.html#customfaq)first. If you can't find the answer you are looking for then please contact [**support@scommerce-mage.com**](mailto:core@scommerce-mage.com)**.**