sc_url( wc_get_page_permalink( 'myaccount' ) ) . '" 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 /htdocs/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php:106 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks('') #1 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /htdocs/wp-settings.php(647): do_action('init') #4 /htdocs/wp-config.php(118): require_once('/htdocs/wp-sett...') #5 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #6 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #7 /htdocs/index.php(17): require('/htdocs/wp-blog...') #8 {main} thrown in /htdocs/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 106