mlykotom
Forum Replies Created
-
Can I help in any way with resolving this? It’s really problematic that orders are moved into wrong status because of this issue ??
Unfortunately it didn’t help ??
Today we got an order with the same problem.
Nr. Time From To 6 3 ?ervence, 2023 10:53 pm Zru?ena Zpracovává se 5 3 ?ervence, 2023 7:30 pm ?eká na platbu Zru?ena 4 3 ?ervence, 2023 6:14 pm Zpracovává se ?eká na platbu 3 3 ?ervence, 2023 6:14 pm ?eká na platbu Zpracovává se 2 3 ?ervence, 2023 6:13 pm Zpracovává se ?eká na platbu 1 3 ?ervence, 2023 6:13 pm ?eká na platbu Zpracovává se
Interesting part is that when I manually change the order status from admin, it changes correctly to the required state.
I’m guessing the “Comgate” plugin doesn’t manage to interfere with our status update in admin.
When manually selecting the processing state, the order status rules works properly. ??
Ok, added. Let’s wait if it happens.
Interesting part is that when I manually change the order status from admin, it changes correctly to the required state.
Also, maybe worth noting, we have custom order number, because of migration we did in past. But that’s 2 months ago, and the problem occurs with new orders.
add_filter( 'woocommerce_order_number', [ $this, 'order_number_meta' ] ); function order_number_meta( $original ) { $order_number = get_post_meta( $original, '_order_number', true ); if ( $order_number ) { return $order_number; } return $original; }
+ one more thing to note, we already have some
template_redirect
hook. Just for some low-level redirectsadd_action( 'template_redirect', function () { global $wp_query; if ( ! isset( $wp_query ) ) { return; } // TODO 29.03.2023 multilang! if ( isset( $wp_query->query['name'] ) ) { switch ( $wp_query->query['name'] ) { case'prihlasit-k-odberu': wp_redirect( '/?prihlasit-k-odberu' ); break; case'kabelky': wp_redirect( '/produkty' ); break; } } else if ( isset( $wp_query->query['product_cat'] ) && $wp_query->query['product_cat'] == 'kabelky' ) { wp_redirect( '/kategorie/kabelky-na-miru' ); } } );
I’ve sent an email to the mentioned url.
I had time trigger set to 0, or even not to 0 — it didn’t make a difference I think.
It was part of the
init
function as part of custom plugin that registers the post.I changed now the hook to
woocommerce_register_shop_order_post_statuses
that is where Woocommerce registers its own statuses ( I haven’t tested it yet ).Unfortunately it’s a paid plugin, so the code is not publicly available
(this is the website https://toret.cz/produkt/woo-comgate/ ) .. I guess I could privately share the code, just for testing.But I actually don’t think it’s a problem with this plugin.
I think the cycle happens because order status rules change it towc-on-hold
and then comgate plugin changes is again towc-processing
.Thanks for the information. This feels rather like a bug not a “pro” feature, but I guess you’ve put thoughts into this. Thanks ??
Cool, thanks for the information. I thought this is a bug therefore I reported it, because from user’s perspective it makes sense that quantity is a separate product.
For example, If I’d like to buy tickets to the cinema and selected quantity = 2, I don’t expect going into 2 films, but I want 2 tickets.
Thanks for the workaround though! ??
Great! Thanks for the information. I understand this is probably not a priority ??