I'm having problems getting an order to show in the 'Orders' app if I apply any 'status' within checkout.php:
Code
- //checkout.php
- if (perch_member_logged_in()) {
- $return_url = 'order-thanks';
- $cancel_url = 'order-cancel';
- perch_shop_checkout('manual', [
- //'status' => 'created', //status index = 0 //doesn't show in 'Orders' app
- 'status' => 'processing', //status index = 100 //doesn't show in 'Orders' app
- 'return_url' => $return_url,
- 'cancel_url' => $cancel_url,
- ]);
- }
Any help and direction here would be very much appreciated.
Actually, if I change the status to 100 or below the order disappears from the 'Orders' app. Is this supposed to happen?
Also, what relevance/effect do the index numbers have?