PHPackages                             fmdd/admin-order-creation-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. fmdd/admin-order-creation-plugin

ActiveSylius-plugin[Admin Panels](/categories/admin)

fmdd/admin-order-creation-plugin
================================

Sylius Plugin for order creation in Admin panel

0390PHP

Since Oct 18Pushed 2y agoCompare

[ Source](https://github.com/SFMDD/AdminOrderCreationPlugin)[ Packagist](https://packagist.org/packages/fmdd/admin-order-creation-plugin)[ RSS](/packages/fmdd-admin-order-creation-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://camo.githubusercontent.com/1567208cc7c8ec53cf6e2af4f54449a9bb3ab0dee7916998de4e3ce9b7f79015/68747470733a2f2f64656d6f2e73796c6975732e636f6d2f6173736574732f73686f702f696d672f6c6f676f2e706e67) ](https://sylius.com)

Admin Order Creation Plugin
===========================

[](#admin-order-creation-plugin)

[![](https://camo.githubusercontent.com/9b437c7f32af7f569d4c0d8e750fd3e94c19a1a7ad491228a34cf567b0ea8af4/68747470733a2f2f73796c6975732e636f6d2f6173736574732f62616467652d6f6666696369616c2d73796c6975732d706c7567696e2e706e67)](https://sylius.com/plugins/)

This plugin allows to create an order in admin panel.

[![Screenshot showing the order creation page, Shipments&Payments section](docs/screenshot.png)](docs/screenshot.png)

Business value
--------------

[](#business-value)

So far it was up to the Customer to place an order using available product variants as well as payment and shipping methods.

The whole process of placing an order is not that obvious, however. For some reason a Customer may feel a little bit confused when a promotion is no longer available or shipping method is not eligible for given area. Here comes Admin Order Creation Plugin.

Briefly speaking, it allows an Administrator to place or reorder an order in the name of a Customer. It helps them solve even more of Customers' fundamental problems and equips an Administrator with basic tools making creating an order possible.

Admin Order Creation Plugin processes are strongly based on standard Order model taken from SyliusCoreBundle. The only things that differ are order creation context and business requirements. Right now it is up to the Administrator to provide a channel, locale and currency in which an Order is created. What's more, the Administrator is able to add a discount for any item or the whole Order, which is, technically speaking, a new type of Sylius Adjustments.

After creating an Order via Admin panel, this new Order is listed like any other order placed via Sylius.

Installation
------------

[](#installation)

#### Beware!

[](#beware)

> This installation instruction assumes that you're using Symfony Flex. If you don't, take a look at the [legacy installation instruction](docs/legacy_installation.md). However, we strongly encourage you to use Symfony Flex, it's much quicker! :)

1. Require plugin with composer:

    ```
    composer require sylius/admin-order-creation-plugin
    ```

    > Remember to allow community recipes with `composer config extra.symfony.allow-contrib true` or during plugin installation process
2. Copy Sylius templates overridden in plugin to your templates directory (e.g `templates/bundles/`):

    ```
    mkdir -p templates/bundles/SyliusAdminBundle/
    cp -R vendor/sylius/admin-order-creation-plugin/src/Resources/views/SyliusAdminBundle/* templates/bundles/SyliusAdminBundle/
    ```
3. Override repositories

    1. Create repository classes ```
        mkdir src/Repository
        touch src/Repository/CustomerRepository.php
        touch src/Repository/ProductVariantRepository.php
        ```
    2. Paste the following content to the `src/Repository/CustomerRepository.php`: ```
