Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 userthe possibility to download content from the checkout agreements modal.

Installation

Info

This module is optional

...

The module is enabled by default after installation. It is possible to configure PDF file name in:

Stores -> Configuration -> MageSuite -> Downloadable terms and condition

...

Settings:

Name

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 Download button content of the following code is executed:

...

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.

Code Block
languagejs
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.

...