HEX
Server: nginx/1.27.0
System: Linux 20d173156d2c 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/flexible-shipping/templates/checkout/shipping-method-after.php
<?php
/**
 * Display collection point select.
 *
 * This template can be overridden by copying it to yourtheme/flexible-shipping/checkout/shipping-method-after.php
 *
 * @package Flexible Shipping.
 *
 * @var $collection_point_label string
 * @var $select_options array
 * @var $selected_collection_point string
 * @var $collection_point_field_name string
 * @var $collection_point_description string
 * @var $collection_point_map_selector_label string
 * @car $collection_point_service_id string
 */

?><tr class="shipping flexible-shipping-collection-point">
	<td colspan="2">
		<h4><?php echo esc_html( $collection_point_label ); ?></h4>
		<?php

		$field_args = array(
			'type'        => 'select',
			'options'     => $select_options,
			'description' => $collection_point_description,
			'class'       => array( 'flexible-shipping-collection-point-select' ),
		);
		woocommerce_form_field( $collection_point_field_name, $field_args, $selected_collection_point );
		?>
		<a
			class="flexible-shipping-collection-point-map-selector"
			data-select-id="<?php echo esc_attr( $collection_point_field_name ); ?>" href="#<?php echo esc_attr( $collection_point_field_name ); ?>"
			data-service-id="<?php echo esc_attr( $collection_point_service_id ); ?>" href="#<?php echo esc_attr( $collection_point_field_name ); ?>"
		><?php echo esc_html( $collection_point_map_selector_label ); ?></a>
		<script type="text/javascript">
			if (jQuery().select2) {
				jQuery('#<?php echo esc_attr( $collection_point_field_name ); ?>').select2();
			}
		</script>
	</td>
</tr>