alsppg
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Atualização:
Ao invés de fazer uma alteração no plugin, eu adicionei um trecho de código ao arquivo functions.php para alterar automaticamente para “Pagamento Pendente” todos os pedidos que forem gerados nativamente como “Aguardando”. O código que eu usei foi esse abaixo:/** Muda automaticamente os pedidos "on-hold" to "pending" */ function custom_woocommerce_auto_complete_order( $order_id ) { if ( ! $order_id ) { return; } $order = wc_get_order( $order_id ); if( 'on-hold'== $order->get_status() ) { $order->update_status( 'pending' ); } } add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );Hello! Forgive my bad English, I’m writing from Brazil.
You could solve this problem? I am facing the same difficulties and could not find anything on the Internet to help me.
I’m getting desperate.In addition, I am also facing another problem in Quiz. When the student clicks on “complete question”, the screen keeps loading and locks, not going to the next question.
I need a lot of help.
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)