' ) ) . '" class="button">' . esc_html__( 'My account', 'woocommerce' ) . ' '; } $content .= '

' . $order_received_text . '

' . $actions . '

'; break; default: $content .= '

' . wp_kses_post( // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), $order ) ) . '

'; break; } return $content; } /** * This is what gets rendered when the order does not exist. * * @return string */ protected function render_content_fallback() { // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment return '

' . esc_html__( 'Please check your email for the order confirmation.', 'woocommerce' ) . '

'; } /** * If the order is invalid or there is no permission to view the details, tell the user to check email or log-in. * * @param \WC_Order|null $order Order object. * @return string */ protected function render_confirmation_notice( $order = null ) { if ( ! $order ) { $content = '

' . esc_html__( 'If you\'ve just placed an order, give your email a quick check for the confirmation.', 'woocommerce' ); if ( wc_get_page_permalink( 'myaccount' ) ) { $content .= ' ' . sprintf( /* translators: 1: opening a link tag 2: closing a link tag */ esc_html__( 'Have an account with us? %1$sLog in here to view your order details%2$s.', 'woocommerce' ), '', '' ); } $content .= '

'; return $content; } $permission = $this->get_view_order_permissions( $order ); if ( $permission ) { return ''; } $verification_required = $this->email_verification_required( $order ); $verification_permitted = $this->email_verification_permitted( $order ); $my_account_page = wc_get_page_permalink( 'myaccount' ); $content = '

'; $content .= esc_html__( 'Great news! Your order has been received, and a confirmation will be sent to your email address.', 'woocommerce' ); $content .= $my_account_page ? ' ' . sprintf( /* translators: 1: opening a link tag 2: closing a link tag */ esc_html__( 'Have an account with us? %1$sLog in here%2$s to view your order.', 'woocommerce' ), '', '' ) : ''; if ( $verification_required && $verification_permitted ) { $content .= ' ' . esc_html__( 'Alternatively, confirm the email address linked to the order below.', 'woocommerce' ); } $content .= '

'; if ( $verification_required && $verification_permitted ) { $content .= $this->render_verification_form(); } return $content; } /** * Email verification for guest users. * * @return string */ protected function render_verification_form() { // phpcs:ignore WordPress.Security.NonceVerification.Missing $check_submission_notice = ! empty( $_POST ) ? wc_print_notice( esc_html__( 'We were unable to verify the email address you provided. Please try again.', 'woocommerce' ), 'error', [], true ) : ''; return '
' . $check_submission_notice . sprintf( '

', esc_attr( 'verify-email' ), esc_html__( 'Email address', 'woocommerce' ) . ' *' ) . sprintf( '

%3$s

', esc_attr( 'verify-email-submit' ), esc_html__( 'Confirm email and view order', 'woocommerce' ), wp_nonce_field( 'wc_verify_email', 'check_submission', true, false ), esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ) ) . '
'; } }
Fatal error: Uncaught Error: Class 'Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation\Status' not found in /home/merciket/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php:106 Stack trace: #0 /home/merciket/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks('') #1 /home/merciket/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/merciket/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/merciket/public_html/wp-settings.php(643): do_action('init') #4 /home/merciket/public_html/wp-config.php(92): require_once('/home/merciket/...') #5 /home/merciket/public_html/wp-load.php(50): require_once('/home/merciket/...') #6 /home/merciket/public_html/wp-blog-header.php(13): require_once('/home/merciket/...') #7 /home/merciket/public_html/index.php(17): require('/home/merciket/...') #8 {main} thrown in /home/merciket/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php on line 106