Search…
Magento 2 How Did You Hear About Us

Installation and User Guide for Magento 2 How did you hear about us Extension

Table of Contents
  1. 1.
    • Installation via app/code
    • Installation via Composer
  2. 2.
    • General Settings
    • Selected WDYHAU Option in Orders Grid
    • WDYHAU Details at Customers Level
    • WDYHAU Details on the Sales Order View Page
    • “Where did you hear about us?” Drop-down Options in the Back-end
  3. 4.
    • WDYHAU Option on the Registration Page
    • WDYHAU option on the Checkout Page

Installation

  • Installation via app/code: 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 bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
  • Installation via Composer: Please follow the guide provided in the below link to complete the installation via composer.

Configuration Settings for Where did you hear about us?

Go to Admin > Stores > Configuration > Scommerce Configuration > Where did you hear about us?

General Settings

  • 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 [email protected]
  • Dropdown options – Please add the WDHAU options for customers and administrators to choose during checkout and creating order via admin respectively. There should be semicolon (;)separated values for example Google;Facebook;Twitter;Others
  • Drop Down Label – Please add the label.
  • Other Label – Please add the label for other option.
  • Field Is Required On Customer Registration- Select "yes" to set the Where did you heard about us feild as required during signup.
  • Selected WDYHAU Option in Orders Grid - You can see the selected "Where did you hear about us?" option at Admin > Sales > Orders grid.
  • WDYHAU Details at Customers Level - To see the "Where did you hear about us?" option at customers level go to Admin > Customers > All Customers > Select Customer > Account Information > Where did you hear about us?
A screenshot of a cell phone Description automatically generated
  • WDYHAU Details on the Sales Order View Page - The selected WDYHAU option will be shown on order view page under "Account Information" section from Admin > Sales > Select Order > View.
  • “Where did you hear about us?” Drop-down Options in the Back-end - When you enable the module, then it shows WDYHAU drop-down option in the back-end at Admin > Sales > Create New Order > Select Customer > Select Product > Select "Where did you hear about us?" option.

Create Affiliate Code using WDYHAU Module

You can create and use affiliate codes using this module. The extension creates a session cookie when referral_source is passed with the URL. It expires only when the browser is closed. Cookie value is set based on the parameter passed with the URL. Also, this value is captured in the sales order grid against the order under 'Where Did you hear about us'.
A session cookie named referral_source is created in the browser with value SCOMMAG. Please refer to the image below:-
Once the order is placed the cookie value is captured against the order in the sales order grid. Please refer to the image below:-

Front-end Site View

  • WDYHAU Option on the Registration Page - You can define the "Where did you hear about us?" drop-down options from Admin > Stores > Configuration> Scommerce Configuration > Where did you hear about us? - Google; Twitter; Facebook; YouTube; Others, which will be shown on the registration page.
  • WDYHAU option on the Checkout Page - You can see the "Where did you hear about us?" option on the checkout page.
If you have a question related to this extension please check out our FAQ Section first. If you can't find the answer you are looking for then please contact [email protected].
Export as PDF
Copy link
On this page
Installation and User Guide for Magento 2 How did you hear about us Extension
Installation
Configuration Settings for Where did you hear about us?
Create Affiliate Code using WDYHAU Module
Front-end Site View