diff --git a/README.md b/README.md index 37498a1..c331b92 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ [![Latest Stable Version](https://poser.pugx.org/silvershop/discounts/v/stable.png)](https://packagist.org/packages/silvershop/discounts) [![Latest Unstable Version](https://poser.pugx.org/silvershop/discounts/v/unstable.png)](https://packagist.org/packages/silvershop/discounts) -[![Build Status](https://secure.travis-ci.org/silvershop/silvershop-shipping.png)](http://travis-ci.org/silvershop/silvershop-shipping) -[![Code Coverage](https://scrutinizer-ci.com/g/silvershop/silvershop-shipping/badges/coverage.png?s=cae0140f6d9a99c35b20c23b8bbe88711d526246)](https://scrutinizer-ci.com/g/silvershop/silvershop-shipping/) -[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/silvershop/silvershop-shipping/badges/quality-score.png?s=802731e23565b5a7051b5622a56fccb7b764662a)](https://scrutinizer-ci.com/g/silvershop/silvershop-shipping/) -[![Total Downloads](https://poser.pugx.org/silvershop/shipping/downloads.png)](https://packagist.org/packages/silvershop/shipping) +[![Build Status](https://secure.travis-ci.org/silvershop/silvershop-discounts.png)](http://travis-ci.org/silvershop/silvershop-discounts) +[![Code Coverage](https://scrutinizer-ci.com/g/silvershop/silvershop-discounts/badges/coverage.png?s=cae0140f6d9a99c35b20c23b8bbe88711d526246)](https://scrutinizer-ci.com/g/silvershop/silvershop-discounts/) +[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/silvershop/silvershop-discounts/badges/quality-score.png?s=802731e23565b5a7051b5622a56fccb7b764662a)](https://scrutinizer-ci.com/g/silvershop/silvershop-discounts/) +[![Total Downloads](https://poser.pugx.org/silvershop/discounts/downloads.png)](https://packagist.org/packages/silvershop/discounts) Allows creating discounts for products / orders. @@ -27,17 +27,14 @@ Discounts can be globally enabled/disabled. * SilverShop Module -## Installation Instructions - - * Install code to your SilverStripe root directory. - -via composer: +## Installation ```sh composer require silvershop/discounts dev-master ``` -If you are using the stepped checkout, add the `CheckoutStep_Discount` checkout step: +If you are using the stepped checkout, add the `CheckoutStep_Discount` checkout +step: ```yaml SilverShop\Page\CheckoutPage: @@ -46,7 +43,8 @@ SilverShop\Page\CheckoutPage: ``` If you would like to display the coupon form seperately to the checkout form, -apply the following extension. This will make `CouponForm` available in the checkout template: +apply the following extension. This will make `CouponForm` available in the +checkout template: ```yaml SilverShop\Page\CheckoutPageController: @@ -64,9 +62,10 @@ SilverShop\Model\Order: ## Specific Pricing -Extend `Product` and/or `ProductVariation` with the `SpecificPricingExtension` to introduce a pricing table for each product. This allows admins to set prices according to things like, date, and membership group. +Extend `Product` and/or `ProductVariation` with the `SpecificPricingExtension` +to introduce a pricing table for each product. This allows admins to set prices +according to things like, date, and membership group. -Configure as follows: ```yaml SilverShop\Page\Product: extensions: