https://github.com/magesuite/downloadable-terms-and-conditions
The module adds a new button Download
to checkout agreements modal. On the backend side, PDF file is generated with the content the same as the agreement modal content. After clicking on the Download button the file is downloaded by a user.
Installation
This module is optional
composer require "creativestyle/magesuite-downloadable-terms-and-conditions" ^1.0.0
Admin settings
The module is enabled by default after installation. It is possible to configure PDF file name in: Stores -> Configuration ->MageSuite -> downloadable terms and condition
Frontend
An additional Download
button is added to the agreement model.
After clicking on the download button the following code is executed:
window.location = url.build('terms_and_conditions/index/download');
On the backend side, PDF file with the default agreement
name is created. Its content is the same as the content of the agreement modal. After clicking on the Download button the file is downloaded by a user.
TODO - BE documentation and review of documentation is needed