Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #32 from pamil/make-readme-great-again
Browse files Browse the repository at this point in the history
Make README great again
  • Loading branch information
pamil authored Jul 4, 2018
2 parents 66a150f + 1e3a85a commit 73109ca
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 26 deletions.
61 changes: 35 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,55 @@
# CustomerReorderPlugin
<p align="center">
<a href="https://sylius.com" target="_blank">
<img src="https://demo.sylius.com/assets/shop/img/logo.png" />
</a>
</p>

SyliusCustomerReorderPlugin allows customer to reorder previously placed order.
<h1 align="center">Customer Reorder Plugin</h1>

<p align="center">This plugin allows customers to reorder a previously placed order.</p>

![Screenshot showing the customer's orders page with reorder buttons](docs/screenshot.png)

## Installation

Require plugin with composer:
1. Require plugin with composer:

```bash
composer require sylius/customer-reorder-plugin
```
```bash
composer require sylius/customer-reorder-plugin
```

Import configuration:
2. Import configuration:

```yaml
imports:
- { resource: "@SyliusCustomerReorderPlugin/Resources/config/config.yml" }
```
```yaml
imports:
- { resource: "@SyliusCustomerReorderPlugin/Resources/config/config.yml" }
```
Import routing:
3. Import routing:
````yaml
sylius_customer_reorder:
resource: "@SyliusCustomerReorderPlugin/Resources/config/app/reorder_routing.yml"
````
```yaml
sylius_customer_reorder:
resource: "@SyliusCustomerReorderPlugin/Resources/config/app/reorder_routing.yml"
```
Add plugin class to your `AppKernel`:
4. Add plugin class to your `AppKernel`:
```php
$bundles = [
new \Sylius\CustomerReorderPlugin\SyliusCustomerReorderPlugin(),
];
```
```php
$bundles = [
new \Sylius\CustomerReorderPlugin\SyliusCustomerReorderPlugin(),
];
```
Clear cache:
5. Clear cache:
```bash
bin/console cache:clear
```
```bash
bin/console cache:clear
```
## Extension points
Customer Reorder plugin is based on two processes:
* reorder processing
* reorder eligibility checking
Expand Down
Binary file added docs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 73109ca

Please sign in to comment.