DownloadableTermsAndConditions (optional)
GitHub - magesuite/downloadable-terms-and-conditions
The module adds the possibility to download content from the checkout agreements modal.
Â
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.
Stores -> Configuration -> MageSuite -> Downloadable terms and condition
Settings
Field | Options | Note |
---|---|---|
PDF file name | Â String | Without file extension |
Frontend
An additional Download
button is added to the agreement model.
After clicking on the Download
button content of the agreement modal is downloaded as a PDF file with the name configured in the admin panel.
The PDF is generated by executing the following code on the frontend side.
window.location = url.build('terms_and_conditions/index/download');
Â