Log in
Model

Agreement

Magento\CheckoutAgreements\Model\Agreement

What it does

This model represents a checkout agreement (terms and conditions) that customers must accept during checkout.

Developers use this class to create, validate, and manage checkout agreements, including their content, display settings, checkbox text, and whether they're active.

It handles validation of CSS height values for agreement display boxes and automatically formats height units.

Public Methods

  • validateData()
  • beforeSave()
  • getAgreementId()
  • setAgreementId()
  • getName()
  • setName()
  • getContent()
  • setContent()
  • getContentHeight()
  • setContentHeight()
  • getCheckboxText()
  • setCheckboxText()
  • getIsActive()
  • setIsActive()
  • getIsHtml()
  • setIsHtml()
  • getMode()
  • setMode()
  • getExtensionAttributes()
  • setExtensionAttributes()