plumpss/silverstripe-shop-closed-message
最新稳定版本:0.1.0
Composer 安装命令:
composer require plumpss/silverstripe-shop-closed-message
包简介
SilverStripe Shop module to temporarily close the shop.
README 文档
README
Add-on module for SilverStripe shop that allows the shop to be temporarily closed with a message. Useful, for example, when taking a break from selling online.
Requirements
Installation
composer require plumpss/silverstripe-shop-closed-message
Usage
This module adds closed option and message fields to SiteConfig under Settings > Shop > Shop Closed.
Include ClosedMessage wherever you'd like the message to appear. If the shop is not closed, nothing will be output. For example, in the main template Page.ss:
<body>
<div class="header">
...
</div>
<% include ClosedMessage %>
<div role="main">
...
</div>
</body>
If you do not want to allow orders to be placed, replace the use of $Form in your product page template with an include of FormOrClosedMessage:
<% include FormOrClosedMessage %>
You can create your own versions of ClosedMessage.ss and/or FormOrClosedMessage.ss in your theme's templates/Includes directory for complete control of the markup.
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-04