2017 © Pedro Peláez
 

silverstripe-module silverstripe-shop-closed-message

SilverStripe Shop module to temporarily close the shop.

image

plumpss/silverstripe-shop-closed-message

SilverStripe Shop module to temporarily close the shop.

  • Tuesday, August 4, 2015
  • by plumpjames
  • Repository
  • 2 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 5 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SilverStripe Shop Closed Message

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., (*1)

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., (*2)

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:, (*3)

<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:, (*4)

<% 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., (*5)

The Versions

04/08 2015

dev-master

9999999-dev

SilverStripe Shop module to temporarily close the shop.

  Sources   Download

MIT

The Requires

 

silverstripe shop ecommerce closed

04/08 2015

dev-develop

dev-develop

SilverStripe Shop module to temporarily close the shop.

  Sources   Download

MIT

The Requires

 

silverstripe shop ecommerce closed

04/08 2015

0.1.0

0.1.0.0

SilverStripe Shop module to temporarily close the shop.

  Sources   Download

MIT

The Requires

 

silverstripe shop ecommerce closed