<!-- TITLE: Ask For Details Pro - Magento 2 module documentation -->
<!-- SUBTITLE: Author: Paweł Wasiluk -->
# Ask For Details Pro Module
## Module overview
Help your customers gain more information about products. Let them ask you precise questions with a custom template, designed by yourself.
Pro version gives you option to set up Google reCaptcha. Be sure that real customers send questions about products and protect against spam from robots.
## Module compatibility
This module is compatibile with Magento Community versions: **2.2**, **2.3**, **2.4**.
## How it works
After installing, the module is disabled by default, head to the Admin Panel to enable it. Go to Stores > Configuration > Catalog > Ask For Details Pro. There you will have two sections.
![16 2](/uploads/ask-for-details-pro/16-2.png "16 2")
* Enable Ask For Details - enable or disable module manually
* Feedback For Customer - when enabled, customer receives the confirming email
* Form title - create your own title for email
![17](/uploads/ask-for-details-pro/17.png "17")
* Sends Emails To - set an email that question will be send to
* Email Sender - set sender type
* Store Email Template - chose template for emails, you can edit them in Stores > Configuration > General > Store Email Addresses
* Customer E-mail Template -field appear when Feedback For Customer is on pole. Chose template for emails, you can edit them in Stores > Configuration > General > Store Email Addresses > Ask For Details Pro
![18](/uploads/ask-for-details-pro/18.png "18")
Since you enabled the module, head to Content > Form Fields in panel. To add new field to form click on Add New Field.
![B 3](/uploads/ask-for-details-pro/b-3.jpg "B 3")
![B 4](/uploads/ask-for-details-pro/b-4.jpg "B 4")
Enable Field – turns on or off visibility of field
Field Label – set custom field label
Field Type – you can choose whether type of field should be text or textarea
Required – chose if field should be required
Validation Type – set validation type e.q. Email, Number, Url
Sord order – set a number to sort your categories
Store View – a store/store view that this category should be visible in
Added field will be seen in the Content > Form Fields grid.
To display Ask About Produt button on product page you have to add product attribute
![19](/uploads/ask-for-details-pro/19.png "19")
![20](/uploads/ask-for-details-pro/20.png "20")
Afterwards new field will appear in section Attributes on product edit page named Show Ask for Details button. Turn it on and save product.
The module also allows you to define the email addresses of sellers for selected products through the set_seller attribute, we give it to the product in the same way as the previous attribute. In the attribute edition, we should now define the sellers along with their emails.
Button Ask About Product will be located ob product page. When clicked, form modal appears.
![B 5](/uploads/ask-for-details-pro/b-5.jpg "B 5")
Template consists fields that you created in previous steps, after clicking send user will be noticed whether an email was sent properly.
![B 6](/uploads/ask-for-details-pro/b-6.jpg "B 6")
After question was sent by user, you can view it in Reports > Ask For Details Pro > Mail. Here you will have a grid that contains all questions.
![B 7](/uploads/ask-for-details-pro/b-7.jpg "B 7")
In the Action column click on Select > View to see the content that will look like presented below:
![B 8](/uploads/ask-for-details-pro/b-8.jpg "B 8")
To set up google reCaptcha you should remember to addGoogle API website key and Google API website key in Stores > Configration > Security > Google reCaptcha.
Next go to storefront and enable recaptcha in ask for details form:
![21](/uploads/ask-for-details-pro/21.png "21")
## Demo
demo1.magecreation.com
## Installation
### Composer
1. Add repo to composer.json:
```text
"repositories": [
...
{
"type": "vcs",
"url": "git@git.auroracreation.com:aurora-modules/AskForDetailsPro.git"
}
...
],
```
2. Add package to composer.json:
```text
"require": {
...
"aurora/module-ask-for-details-pro": "*"
...
},
```
3. In Magento root folder run commands:
```text
composer update aurora/module-faq
php bin/magento module:enable Aurora_AskForDetailsPro
php bin/magento setup:upgrade
```
### Manual
1. Unzip archive.
2. Upload extension files on your server to:
```text
{Magento root}
└── app/
└── code
```
3. In Magento root folder run commands:
```text
php bin/magento module:enable Aurora_AskForDetailsPro
php bin/magento setup:upgrade
```
## Changelog
### v.2.2.0
* The method of enabling reCaptcha protection has been changed
### v.2.1.2
* Add button in configuration to turn on attribute on all products
### v.2.1.1
* Grid fulltext search fixed
### v.2.1.0
* Integration with Aurora_Base module
* Moving the configuration to the "Aurora" tab
* Improved code quality
### v.2.0.16
* Improvement and addition of missing translations
### v.2.0.15
* Improvement of dependencies
### v.2.0.14
* Adaptation of the module for Magento 2.4.0
### v.2.0.12
* Fix for currency reading
### v.2.0.11
* Captcha fix
### v.2.0.10
* Bug fixes
### v.2.0.9
* Captcha fix
### v.2.0.8
* Captcha fix
### v.2.0.7
* Improvement of dependencies
### v.2.0.6
* Code and copyright improvements
### v.2.0.5
* Code improvement for Magento 2.4
### v.2.0.4
* ReadMe update
### v.2.0.3
* Fix of column types
### v.2.0.2
* Addition of whitelist.json
### v.2.0.1
* Addition of dbschema
### v.2.0.0
* JS improvement
### Thank you for your interest in our products!