関数
CartErrorPage::getErrorPageHtml( string $html, WCEXAAP\Aivec\ResponseHandler\GenericError $error )
パラメータ パラメータ
- $html
(文字列) (必須)
- $error
(WCEXAAP\Aivec\ResponseHandler\GenericError) (必須)
ファイル: src/Views/CartErrorPage/CartErrorPage.php
public function getErrorPageHtml($html, GenericError $error) {
ob_start();
?>
<div class="error_page_message">
<h4><?php _e('The following errors occured:', 'wcexaap'); ?></h4>
<p><span class="reasonCode">- <?php echo esc_html($error->errorname); ?></span>: <?php echo esc_html($error->message); ?></p>
</div>
<?php
$ehtml = ob_get_contents();
ob_end_clean();
$html .= $ehtml;
return $html;
}