関数
DeliveryForm::deliveryMethod()
配達方法の入力にVue.jsのバインディングを挿入する
戻り値 戻り値
ファイル: src/Components/DeliveryForm/DeliveryForm.php
public function deliveryMethod() { global $usces; /** * Mirrored Welcart filter * * @ignore */ $deli_id = apply_filters( 'usces_filter_get_available_delivery_method', $usces->get_available_delivery_method() ); if (empty($deli_id)) { $html = '<p>' . __('No valid shipping methods.', 'usces') . '</p>'; } else { $html = '<select name="offer[delivery_method]" id="delivery_method_select" class="delivery_time" onKeyDown="if (event.keyCode == 13) {return false;}" >' . "\n"; foreach ($deli_id as $id) { $index = $usces->get_delivery_method_index($id); if (0 <= $index) { $html .= "\t<option value='{$id}'> " . esc_html($usces->options['delivery_method'][$index]['name']) . " </option>\n"; } } $html .= "</select>\n"; } /** * Filters the delivery form method select HTML shown on the Quickpay page * * @param string $html * @param array $deli_id */ $html = apply_filters('wcexaap_checkout_review_filter_delivery_method', $html, $deli_id); echo $html; }