This module extends the add to cart button with a "Request Sample" button. Clicking on it opens a modal with a custom form. Customer can add his name, address and a message.
#How to enable sample request:
- Install module
- Enable module under Stores > Configuration > Longneck Designs you find a setting to enable the module.
- Find also a textarea field which will be added at the top of the sample request form
- Enable product for sample request with clicking "yes" on the samplerequest attribute on product page in the backend.
- Reindex and find all enabled products in the top select box of the sample request form
#Features
- Adds "Request Sample" Button and Form to product detail page
- Sample Request link in the footer links section
- Dedicated samplerequest page under www.domain.com/samplerequest/
After that, need to install this module as follows:
composer require magento/magento-composer-installer composer require longneck/samplerequest
go to Magento2Project root dir create following Directory Structure :
/Magento2Project/app/code/Longneck/SampleRequest to Enable this module you need to follow these steps:
Enable the Module
bin/magento module:enable Longneck_SampleRequest
Run Upgrade Setup
bin/magento setup:upgrade
Re-Compile (in-case you have compilation enabled)
bin/magento setup:di:compile