# How to bulk handle orders?

**URL:** <https://forum.shopware.com/t/how-to-bulk-handle-orders/89171>\
**Category:** General Questions (EN)\
**Created:** [15. Juli 2021 um 13:01 UTC](https://forum.shopware.com/t/how-to-bulk-handle-orders/89171 "2021-07-15T13:01:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [15. Juli 2021 um 13:01 UTC](https://forum.shopware.com/t/how-to-bulk-handle-orders/89171/1 "2021-07-15T13:01:53Z")

</div>

Hello  
I’m looking at Shopware for a replacement for Magento, and have a lot of questions ;). But, let’s start with this:  
How do you handle many orders at once (like 50-100)? It does not seems to be possible with vanilla Shopware 6, so any recommendations for a module?

Would be great to check several orders, change the status to „Complete“ and print the shipping slips.

How do you do it?

Magnus

---

<div class="post-metadata">

**Author:** ![liyohi6156eyeremind](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@liyohi6156eyeremind](https://forum.shopware.com/u/liyohi6156eyeremind)\
**Post date:** [20. Juli 2021 um 08:14 UTC](https://forum.shopware.com/t/how-to-bulk-handle-orders/89171/2 "2021-07-20T08:14:30Z")

</div>

class Shopware\_Controllers\_Backend\_SwagProductAssoc extends Shopware\_Controllers\_Backend\_Application  
{  
protected $model = Product::class;  
protected $alias = ‚product‘;

```
...

```

public function deactivateProductsAction()  
{  
try {  
$productId = $this-\>Request()-\>getParam(‚productId‘);

```
        /**@var $product \Shopware\CustomModels\Product\Product */
        $product = $this->getManager()->find(
            $this->model,
            $productId
        );

        $product->setActive(0);

        $this->getManager()->flush($product);

        $this->View()->assign(array('success' => true));
    } catch (Exception $e) {
        $this->View()->assign(array(
            'success' => false,
            'error' => $e->getMessage()
        ));
    }
}

public function changeCreateDateAction()
{
    try {
        $productId = $this->Request()->getParam('productId');

        /**@var $product \Shopware\CustomModels\Product\Product */
        $product = $this->getManager()->find(
            $this->model,
            $productId
        );

        $product->setCreateDate('now');

        $this->getManager()->flush($product);

        $this->View()->assign(array('success' => true));
    } catch (Exception $e) {
        $this->View()->assign(array(
            'success' => false,
            'error' => $e->getMessage()
        ));
    }
}

```

}

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [20. Juli 2021 um 11:39 UTC](https://forum.shopware.com/t/how-to-bulk-handle-orders/89171/3 "2021-07-20T11:39:55Z")

</div>

Thanks for the code.  
But, I’m not a backend developer (frontend and also a merchant). How can I use this on the order page?

// Magnus

---

<div class="post-metadata">

**Author:** ![V.Gert](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/v.gert/32/13693_2.png) [@V.Gert](https://forum.shopware.com/u/V.Gert)\
**Post date:** [20. Juli 2021 um 14:10 UTC](https://forum.shopware.com/t/how-to-bulk-handle-orders/89171/4 "2021-07-20T14:10:06Z")

</div>

Hey @magnus this function is in progress. I can’t tell you exactly when it will come, but here is the ticket.  
Unfortunately, it’s in German, but it will come.  
[https://issues.shopware.com/issues/NEXT-8968](https://issues.shopware.com/issues/NEXT-8968).  
please have a little patience.

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [21. Juli 2021 um 04:41 UTC](https://forum.shopware.com/t/how-to-bulk-handle-orders/89171/5 "2021-07-21T04:41:17Z")

</div>

Thanks for the heads-up, Gert.
