This Magento 2 Secret Key Verification extension allows the store owner to enable verification of the customers for the downloadable products only.
The admin can easily enable or disable the extension to be used on the website.
The admin can set terms and conditions for the downloading the products as per there web-store policies.
The customers in order to download the product need to accept that terms and conditions and will generate a token to view all of its downloadable products.
The token will be sent on the registered email id of the customer. The admin can also generate a token key for the customer from the admin panel.
Note:- This extension works only for the downloadable products.
Features Of Secret Key Verification
- Verifies logged in customers for downloadable products.
- The admin can create a token on behalf of customers.
- The admin can mention the terms and conditions for the downloadable products.
- Works only for the logged in customers.
- The customer can also resend the verification code to their email Ids.
Installation Of Secret Key Verification
Customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder.
You need to transfer this app folder into the Magento2 root directory on the server as shown below.
After the successful installation, you have to run these commands in the Magento2 root directory:
First command –
php bin/magento setup:upgrade
Second Command –
php bin/magento setup:di:compile
Third Command –
php bin/magento setup:static-content:deploy
After running the commands, you have to flush the cache from Magento admin panel by navigating through System > Cache management as shown below.
Configuration For Multi-lingual Support
For the multilingual support, admin will navigate through Store > Configuration > General > Locale Options and select the locale as German (the language into which admin want to translate his store content).
Secret Key Verification Translation
If a user wants to translate their module from English to German then they need to follow the path app/code/Webkul/DownloadVerification/i18n in their unzipped folder and will get a CSV file with name “en_US.csv”.
Now they will rename that CSV as “de_DE.csv” and translate all right side content after the comma in the German language.
After editing the CSV, save it and then upload it to the path app/code/Webkul/DownloadVerification/i18n where they have installed Magento2 on the server.
The module will get translated into the German Language. It supports both RTL and LTR languages.
The user can edit the CSV like the image below.
Configuration Of Secret Key Verification
The admin will configure the module by navigating through Stores > Configuration > Download Verification.
From here the admin will do some basic configuration in the general settings of the extension.
- Enable Download Verification:- From here the admin can enable or disable the extension.
- Add Terms and Conditions:-Here the admin can set up the terms & conditions as per the store policies for downloading the content.
The customer purchases a downloadable product from the website as shown below in the snapshot.
After placing the order from the website, the customer can check out their downloadable products from the customer panel on the website.
Now under the “My Downloadable Products ” option, the customer will be needed to accept the store terms & condition and will click on the Generate Token button in order to view and download their products.
The customer after clicking the button will receive a verification code on their registered email address that is needed to be entered in the field.
The email will be received with the following code as shown below
Now after receiving the code, the customer needs to copy the code & paste it into the field in order to complete the verification process.
If you have entered wrong code then you will receive an error message.
or; because of network connectivity issue you do not get the code then you can also click on Didn’t receive the code? Click here to resend option to again send the code to your email.
A pop message for the confirmation will appear addressing the code has been sent again on the registered email address.
Now as the customer enters the correct code, then on the next screen customer will see their purchased downloadable product and can download them as per the conditions.
Token Management – Admin End
The admin of the webstore can also generate the token for verification on behalf of the customer.
If the customer isn’t able to receive the verification email because of some reasons, in such a scenario the customer will contact the admin and request for the generation code to access their downloadable products.
The admin can create & view the tokens from the admin panel under the Token Management > Token Details menu available on the left side menu.
Under the token details, the admin can create a new token for a customer as well as can view all the created token with their used status in a grid view style.
Here the admin can see the status of the token generated like expired if used and Not expired if not used. And can also check the time at which the token is used by the customer.
The admin in order to create a token for a customer will click on the create token button available on the generated token list page.
The admin from the dropdown option can view all the website customers & can select the specific one for whom the token needs to be created.
And will click on generate the token for the creation of the auto unique verification code to be used.
After selecting the customer & generating the code the admin will save the code.
The generated code will be sent by the admin manually to the customer.
Once the customer receives the code will enter it in the verification field to view their downloadable products by selecting the Is admin Token? checkbox.
Note:- If the customer didn’t select the Is admin Token? the checkbox before entering the code received from admin end will not able to view their downloadable products.
After verifying the code received from the admin side, the customer can easily view & download their downloadable products.
Note:- The most recent verification code generated is to be used by the customer only. In case the customer receives two codes after clicking on didn’t receive code then in such case, only recent code received by the customer needs to be used.
Current Product Version - 3.0.0
Supported Framework Version - 2.3.x