students dont get enrolled in courses as orders still processing
-
can you make products marked as download automatically just like how you did it ( virtual and tutor) ?
because whenever teacher creates a course, the admin will have to go make the product as download or go complete the order. While the admin get notified and has time to login and do it, the student will be confused and start contacting which doesnt reflect a good image of the businessfor now, please if you have some snippet to fix this ?
i tried this but it didnt work
/** * Auto Complete all WooCommerce orders */
add_action( ‘woocommerce_thankyou’, ‘custom_woocommerce_auto_complete_order’ );
function custom_woocommerce_auto_complete_order( $order_id ) {
if ( ! $order_id ) {
return;
}$order = wc_get_order( $order_id );
$order->update_status( ‘completed’ );
}`
- The topic ‘students dont get enrolled in courses as orders still processing’ is closed to new replies.