peterbrain/magento2-terms-conditions
Composer 安装命令:
composer require peterbrain/magento2-terms-conditions
包简介
Display all terms and conditions of the respective store view on a page
README 文档
README
Package name: peterbrain/magento2-terms-conditions
Main Functionalities
- Display all terms and conditions (Magento built-in feature) of the respective store view on a page.
- Add this page to Sitemap.
- Display specific terms and conditions within a page or block with a widget.
Widget code:
{{widget type="PeterBrain\TermsConditions\Block\Widget\Tc" agreement_id="<id>"}}
or use the Magento integrated GUI for widgets.
Widget to display specific terms and conditions:
Admin configuration:

Installation
Method 1: Composer (recommended)
composer require peterbrain/magento2-terms-conditions
Method 2: Zip file (not recommended)
- Unzip the zip file in
app/code/PeterBrain
This extension requires PeterBrain Core. Ensure that you have it installed prior to installing this module. Use Composer to install it automatically with this module.
Enable & deploy
bin/magento module:enable PeterBrain_TermsConditions bin/magento setup:upgrade bin/magento setup:static-content:deploy bin/magento cache:flush
Usage
- Enable module ouptut in
Stores > Configuration > PeterBrain Extensions > Terms & Conditions > General Configuration - In Magento 2 admin, navigate to
Stores > Configuration > Sales > Checkoutand setEnable Terms and ConditionstoYes. Module status provides you with a short summary. - If not done already, add a new condition at
Stores > Terms and Conditions- Every condition meeting the scope of your current store view will be displayed at
https://www.example.com/termsconditions/and your custom url.
- Every condition meeting the scope of your current store view will be displayed at
- The url to the terms and conditions is automatically added to the sitemap the next time it is generated. If a user-defined url is specified, only this url will be added to the sitemap.
Required system configuration:

Credits
Credits go to Abdul from magento.stackenchange.com for the inspiration. See: https://magento.stackexchange.com/questions/220500/show-terms-and-conditions-on-static-page
peterbrain/magento2-terms-conditions 适用场景与选型建议
peterbrain/magento2-terms-conditions 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 88 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 11 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 peterbrain/magento2-terms-conditions 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 peterbrain/magento2-terms-conditions 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 88
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2021-11-30