Skip to content

Magento 2 module to add "request sample" button and a form to product page and dedicated page

License

Notifications You must be signed in to change notification settings

johnny-longneck/sample-request-m2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento2 Sample Request Module

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:

  1. Install module
  2. Enable module under Stores > Configuration > Longneck Designs you find a setting to enable the module.
  3. Find also a textarea field which will be added at the top of the sample request form
  4. Enable product for sample request with clicking "yes" on the samplerequest attribute on product page in the backend.
  5. 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/

Composer Installation Instructions

TO DO...

After that, need to install this module as follows:

  composer require magento/magento-composer-installer
  composer require longneck/samplerequest

Manual Installation Instructions

go to Magento2Project root dir create following Directory Structure :
/Magento2Project/app/code/Longneck/SampleRequest

Enable Sample Request

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

About

Magento 2 module to add "request sample" button and a form to product page and dedicated page

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published