Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jun 24, 2024
1 parent 5434115 commit ddd1210
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,30 @@ class Order extends BaseOrder implements PeakOrderInterface
}
```

### Update your database:
### Update your database

```bash
```shell
php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate
```

### Add job to your cron

```bash
# This job will process the orders that are ready to be sent to Peak WMS
php bin/console setono:sylius-peak-wms:process
```

### Register webhooks

To receive stock adjustments and order status updates from Peak WMS, you need to register webhooks in Peak WMS.

Do this by running the following command:

```shell
php bin/console setono:sylius-peak-wms:register-webhooks
```

## Important

The plugin presumes that the `Product::$code` and `ProductVariant::$code` are the same as the product id and variant id
Expand Down

0 comments on commit ddd1210

Please sign in to comment.