Magento 2 Secret Key Verification extension is for downloadable products. It allows the store owner to enable verification of the customers. The admin can easily enable or disable the extension.
In addition, it allows the admin to set terms and conditions for downloading the products as per their web-store policies. The customers need to accept the terms and conditions to download the product.
Consequently, It will generate a token to view all of its downloadable products. Also, the customer will receive the token on the registered email id.
Moreover, the admin can also generate a token key for the customer from the admin panel.
Also, Magento 2 Security extension helps secure your website form various attacks and hacks.
However, this extension works only for downloadable products.
Get an overview of the workflow at the storefront for this plugin feature –
Features Of Secret Key Verification
- Verifies logged in customers for downloadable products.
- The admin can create a token on behalf of customers.
- Specifically, works only for logged-in customers.
- Additionally, the admin can cite the terms and conditions for the downloadable products.
- Also, the customer can resend the verification code to their email Ids.
Installation Of Secret Key Verification
Customers will get a zip folder. They will have to extract the contents of this zip folder on their system. The extracted folder has an src folder which contains the app folder.
After that, You need to transfer this app folder into the Magento2 root directory on the server as shown:
Later, 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
Upon running the commands, you have to flush the cache from the Magento admin panel. To do this navigate through System > Cache management as shown below.
Configuration For Multi-lingual Support
For multilingual support, the admin will navigate through Store > Configuration > General > Locale Options.
Finally, select the locale as German (the language into which the admin wants 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.
User will get a CSV file with name “en_US.csv”.
Now they will rename that CSV as “de_DE.csv”. After that translate all right side contents after the comma in the German language.
Then edit the CSV, save it. After that, you need to upload it to the path app/code/Webkul/DownloadVerification/i18n. The location where they have installed Magento2 on the server.
This will translate the module into the German Language. It supports both RTL and LTR languages.
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.
Front-End Management
The customer purchases a downloadable product from the website as shown below in the snapshot.
After placing the order from the website.
Also, the customer can check out their downloadable products from the customer panel on the website.
Now under the “My Downloadable Products ” option, the customer needs to accept the store terms & conditions.
He will click on the Generate Token button in order to view and download their products.
After clicking the button, the customer will receive a verification code on their registered email address. Insert the code into the asked field.
The email will have the following code as shown below
The customer needs to copy the received code & paste it into the asked field for the verification process.
If you have entered wrong code then you will receive an error message.
In case, you do not get the code due to a network connectivity issue.
Then you can also click on Didn’t receive the code? Click here to resend the option to again send the code to your email.
A pop message for the confirmation will appear addressing the code. You will find it again to the registered email address.
Now as the customer enters the correct code. Then on the next screen customer will see their purchased downloadable products. The customer can now 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 reason. In such a scenario, the customer will contact the admin.
And the customer can request the admin for the generation code to access his 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.
The admin can view all the created tokens with their used status in a grid view style, as well.
Here the admin can see the status of the token generated. For an instance, expired if used and Not expired if not used. And can also check the time at which the customer has used the token.
Create Token
The admin in order to create a token for a customer. He 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. He can select the specific one for whom he will create the token.
After that, he will click on generate the token for the creation of the auto unique verification code.
After selecting the customer & generating the code the admin will save the code.
The admin will manually send the generated code to the customer.
Once the customer receives the code. He will enter it into the verification field. After that, he will be able 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 the 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 is generated for the customer only. In case the customer receives two codes after clicking on didn’t receive code. Then in such a case customer needs to use the only recent code.
In conclusion, that is all for Secret Key Verification for Magento 2. For any further, assistance, just raise a ticket from here and in case of any doubt contact us at [email protected].
Current Product Version - 4.0.0
Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x
Be the first to comment.