Skip to content

Commit

Permalink
Update links in README
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Apr 10, 2019
1 parent 5dd9359 commit 535ea9c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 535ea9c

Please sign in to comment.