|
1 | | -# CustomerReorderPlugin |
| 1 | +<p align="center"> |
| 2 | + <a href="https://sylius.com" target="_blank"> |
| 3 | + <img src="https://demo.sylius.com/assets/shop/img/logo.png" /> |
| 4 | + </a> |
| 5 | +</p> |
2 | 6 |
|
3 | | -SyliusCustomerReorderPlugin allows customer to reorder previously placed order. |
| 7 | +<h1 align="center">Customer Reorder Plugin</h1> |
| 8 | + |
| 9 | +<p align="center">This plugin allows customers to reorder a previously placed order.</p> |
| 10 | + |
| 11 | + |
4 | 12 |
|
5 | 13 | ## Installation |
6 | 14 |
|
7 | | -Require plugin with composer: |
| 15 | +1. Require plugin with composer: |
8 | 16 |
|
9 | | -```bash |
10 | | -composer require sylius/customer-reorder-plugin |
11 | | -``` |
| 17 | + ```bash |
| 18 | + composer require sylius/customer-reorder-plugin |
| 19 | + ``` |
12 | 20 |
|
13 | | -Import configuration: |
| 21 | +2. Import configuration: |
14 | 22 |
|
15 | | -```yaml |
16 | | -imports: |
17 | | - - { resource: "@SyliusCustomerReorderPlugin/Resources/config/config.yml" } |
18 | | -``` |
| 23 | + ```yaml |
| 24 | + imports: |
| 25 | + - { resource: "@SyliusCustomerReorderPlugin/Resources/config/config.yml" } |
| 26 | + ``` |
19 | 27 |
|
20 | | -Import routing: |
| 28 | +3. Import routing: |
21 | 29 |
|
22 | | -````yaml |
23 | | -sylius_customer_reorder: |
24 | | - resource: "@SyliusCustomerReorderPlugin/Resources/config/app/reorder_routing.yml" |
25 | | -```` |
| 30 | + ```yaml |
| 31 | + sylius_customer_reorder: |
| 32 | + resource: "@SyliusCustomerReorderPlugin/Resources/config/app/reorder_routing.yml" |
| 33 | + ``` |
26 | 34 |
|
27 | | -Add plugin class to your `AppKernel`: |
| 35 | +4. Add plugin class to your `AppKernel`: |
28 | 36 |
|
29 | | -```php |
30 | | -$bundles = [ |
31 | | - new \Sylius\CustomerReorderPlugin\SyliusCustomerReorderPlugin(), |
32 | | -]; |
33 | | -``` |
| 37 | + ```php |
| 38 | + $bundles = [ |
| 39 | + new \Sylius\CustomerReorderPlugin\SyliusCustomerReorderPlugin(), |
| 40 | + ]; |
| 41 | + ``` |
34 | 42 |
|
35 | | -Clear cache: |
| 43 | +5. Clear cache: |
36 | 44 |
|
37 | | -```bash |
38 | | -bin/console cache:clear |
39 | | -``` |
| 45 | + ```bash |
| 46 | + bin/console cache:clear |
| 47 | + ``` |
40 | 48 |
|
41 | 49 | ## Extension points |
42 | 50 |
|
43 | 51 | Customer Reorder plugin is based on two processes: |
| 52 | +
|
44 | 53 | * reorder processing |
45 | 54 | * reorder eligibility checking |
46 | 55 |
|
|
0 commit comments