Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

https://github.com/magesuite/downloadable-terms-and-conditions

The module adds a new button Download to checkout agreements modal. On the backend side, a 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

  • No labels