Title: mlykotom's Replies | WordPress.org

---

# mlykotom

  [  ](https://wordpress.org/support/users/mlykotom/)

 *   [Profile](https://wordpress.org/support/users/mlykotom/)
 *   [Topics Started](https://wordpress.org/support/users/mlykotom/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mlykotom/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mlykotom/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mlykotom/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mlykotom/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mlykotom/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Scheduled & Automatic Order Status Controller for WooCommerce] Order status changed to ON-HOLD](https://wordpress.org/support/topic/order-status-changed-to-on-hold/)
 *  Thread Starter [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/order-status-changed-to-on-hold/#post-16884717)
 * Can I help in any way with resolving this? It’s really problematic that orders
   are moved into wrong status because of this issue 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Scheduled & Automatic Order Status Controller for WooCommerce] Order status changed to ON-HOLD](https://wordpress.org/support/topic/order-status-changed-to-on-hold/)
 *  Thread Starter [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/order-status-changed-to-on-hold/#post-16866885)
 * Unfortunately it didn’t help 🙁
 * Today we got an order with the same problem.
 *     ```wp-block-code
       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.
   🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Scheduled & Automatic Order Status Controller for WooCommerce] Order status changed to ON-HOLD](https://wordpress.org/support/topic/order-status-changed-to-on-hold/)
 *  Thread Starter [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/order-status-changed-to-on-hold/#post-16849990)
 * 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.
 *     ```wp-block-code
       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 redirects
 *     ```wp-block-code
       		add_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' );
       			}
       		} );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Scheduled & Automatic Order Status Controller for WooCommerce] Order status changed to ON-HOLD](https://wordpress.org/support/topic/order-status-changed-to-on-hold/)
 *  Thread Starter [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/order-status-changed-to-on-hold/#post-16846823)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Scheduled & Automatic Order Status Controller for WooCommerce] Order status changed to ON-HOLD](https://wordpress.org/support/topic/order-status-changed-to-on-hold/)
 *  Thread Starter [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/order-status-changed-to-on-hold/#post-16846471)
 * 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/](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 to `wc-on-hold` and then comgate
   plugin changes is again to `wc-processing`.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Flexible PDF Coupons - Gift Cards & Vouchers for WooCommerce] Coupon value is 0 when applying a coupon](https://wordpress.org/support/topic/coupon-value-is-0-when-applying-a-coupon/)
 *  Thread Starter [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/coupon-value-is-0-when-applying-a-coupon/#post-16713483)
 * Thanks for the information. This feels rather like a bug not a “pro” feature,
   but I guess you’ve put thoughts into this. Thanks 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Flexible PDF Coupons - Gift Cards & Vouchers for WooCommerce] Multiple coupons for quantity > 1](https://wordpress.org/support/topic/multiple-coupons-for-quantity-1/)
 *  Thread Starter [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/multiple-coupons-for-quantity-1/#post-16713470)
 * 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! 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Flexible PDF Coupons - Gift Cards & Vouchers for WooCommerce] FlexibleCoupons(Base)Email doesn’t have trigger function](https://wordpress.org/support/topic/flexiblecouponsbaseemail-doesnt-have-trigger-function/)
 *  Thread Starter [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/flexiblecouponsbaseemail-doesnt-have-trigger-function/#post-16713449)
 * Great! Thanks for the information. I understand this is probably not a priority
   🙂

Viewing 8 replies - 1 through 8 (of 8 total)