Could an extra configuration parameter be added please so that the payment button works in the same way as the cancel order button?
Existing code in order/view.html.php
$default_status = $config->get('order_created_status','created');
foreach($rows as $k => $order){
if($order->order_status==$default_status){
$rows[$k]->show_payment_button = true;
}
}
Suggested alternative:
if( $config->get('payable_order_status','') != '' ) {
$payable_order_status = explode(',',$config->get('payable_order_status',''));
foreach($rows as $k => $order){
if( in_array($order->order_status, $payable_order_status) ){
$rows[$k]->show_payment_button = true;
}
}
}
This will allow the admin if creating their own statii to define which ones the payable button will appear. The default configuration parameter value on installation will be 'created'.