Search by

yireo / magento2-checkout-agreement-commands

yireo

Magento 2 module adding CLI commands to list and create checkout agreements

Package info

github.com/yireo/Yireo_CheckoutAgreementCommands

Type:magento2-module

pkg:composer/yireo/magento2-checkout-agreement-commands

Fund package maintenance!

yireo

www.paypal.me/yireo

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2025-11-10 12:50 UTC

This package is auto-updated.

Last update: 2026-11-24 12:27:43 UTC


README

Magento version PHP version License Latest Version

This Magento 2 module adds CLI commands to manage checkout agreements

Installation

Install this package via composer:

composer require yireo/magento2-checkout-agreement-commands

Next, enable this module:

bin/magento module:enable Yireo_CheckoutAgreementCommands

Usage

List all agreements:

bin/magento checkout_agreement:list

Create an agreement:

bin/magento checkout_agreement:create --name="Terms" --content="Our terms" --checkbox_text="I agree"

Options of checkout_agreement:create:

  • --is_active: 1 (default) or 0
  • --is_html: 0 (default) or 1. HTML content and checkbox texts are rendered unescaped in the checkout, so only use trusted HTML
  • --mode: 1 (manual, default) or 0 (automatic)
  • --store_id: the store ID, 0 (all store views) by default

Breaking change after 1.0.0: --is_html defaults to 0 (it was 1), the options --is_active, --is_html and --mode require a value of 0 or 1, and agreements are created for all store views (instead of only the default store view).

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation