3

Is there a way to change the status of Expresso Store orders via a SAEF?

For people working in the picking/packing department of a webshop, I would like to create a simple page with a few buttons: "Start picking" "Packed" "Shipped" or "Delayed due to ..." so they can easily use a simple touch screen device and quickly update the status of an order.

Anyone ever tried this? Don't know if it is even possible.

3 Answers 3

3

It's not possible using Store's built in tags. You could do this by writing your own plugin though, if you're comfortable getting your hands dirty with a bit of PHP.

To programatically change an order status in Store 2, you can find an order by ID like so:

$order = Store\Model\Order::find($entry_id);

You can then find and change the status like this:

$status = Store\Model\Status::where('name', $status_name)->first();
$order->updateStatus($status, $current_member_id, $custom_message);
1

Received a mail back from the developers.

It isn't possible at this moment but they are willing to put it on their list of potential things to do. No commitment towards if/when.

-1

Um, yep the EE Docs even give you an example. You could turn that into radio group or some such to achieve the function you seek.

2
  • But the orders aren't available in the normal entries, so the normal entries/docs don't apply, I assumed.
    – CloudzHQ
    Jan 21, 2014 at 12:32
  • Soz, didn't see the store bit. Jan 22, 2014 at 3:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.