kfomichev
Forum Replies Created
-
Thnk you very much.
Menwhile I found a workaround, I modified the Checkout.php file, public function set_default_order_status( $order_id ) . I wrapped the main action into an
if ($order->has_status('processing') )
. This works for me, because all new orders on my site get “processing” status first after creation. This might not work for others, who use pre-payment or other settings. Best way would be to set a small metadata flag after the plugin has processed the order, then chack this flag before processing again to avoid double processing.public function set_default_order_status( $order_id ) {
if ( !$order_id ) {
return;
}
$order = wc_get_order( $order_id );
if ($order->has_status('processing') ) {
$payment_method = $order->get_payment_method();
$option_prefix = 'orderstatus_default_statusgateway_' . $payment_method;
$defaultStatus = get_option( 'wcbv_status_default', null );
if ( $defaultStatus ) {
if ( isset( $defaultStatus[$option_prefix] ) && 'bpos_disabled' !== $defaultStatus[$option_prefix] ) {
$order->update_status( $defaultStatus[$option_prefix] );
} elseif ( isset( $defaultStatus['orderstatus_default_status'] ) && 'bpos_disabled' !== $defaultStatus['orderstatus_default_status'] ) {
$order->update_status( $defaultStatus['orderstatus_default_status'] );
}
}
}
}There are client notifications (for new order or custom/built-in order status changes), they work ok for me.
But there is also a default woocommerce admin notification which is being sent on any new order creation. It is #1 in the notification list and is called “New order” and should work regardless of any plugins. The setup link on my installation is
/wp-admin/admin.php?page=wc-settings&tab=email§ion=wc_email_new_order
The new 1.1.1. version somehow breaks it.
Same for me. I don’t use mobile app. The admin notifications of new order stopped being sent. phpMail log shows no errors, the admin notification is simply not being sent (no record in log).
Client notifications still work.
Rolled back to 1.1.0.
- This reply was modified 1 year ago by kfomichev.
Sorry, I guess there was a glitch, everything works es I expected, the category view displays variation images