Automattic\WooCommerce\Blocks\BlockTypes

ClassicTemplate::render_order_received()protectedWC 1.0

Render method for rendering the order confirmation template.

Method of the class: ClassicTemplate{}

No Hooks.

Return

String. Rendered block type output.

Usage

// protected - for code of main (parent) or child class
$result = $this->render_order_received();

ClassicTemplate::render_order_received() code WC 9.3.3

protected function render_order_received() {
	ob_start();

	echo '<div class="wp-block-group">';

	echo sprintf(
		'<%1$s %2$s>%3$s</%1$s>',
		'h1',
		get_block_wrapper_attributes(), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		esc_html__( 'Order confirmation', 'woocommerce' )
	);

	WC_Shortcode_Checkout::output( array() );

	echo '</div>';

	return ob_get_clean();
}