関数
AmazonCheckoutDetails::getAddressErrorMessageBox( string $changeButtonId, string $wrapperClass = '' )
Returns error message box for an address error
パラメータ パラメータ
- $changeButtonId
(文字列) (必須) ID to bind the change action
- $wrapperClass
(文字列) (任意)
ファイル: src/Components/AmazonCheckoutDetails/AmazonCheckoutDetails.php
public function getAddressErrorMessageBox($changeButtonId, $wrapperClass = '') { ob_start(); ?> <div class="ui wcexaap <?php echo esc_attr($wrapperClass); ?> error-box negative message"> <div class="messages-container"> <div class="header"> <?php echo $this->addressError; ?> </div> <p><?php _e('This address is invalid. Please choose a different address.', 'wcexaap'); ?></p> </div> <div class="button-container"> <button id="<?php echo esc_attr($changeButtonId); ?>" class="ui black fluid mini button"> <?php _e('Change', 'wcexaap'); ?> </button> </div> </div> <?php return ob_get_clean(); }