first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
/**
* Checkout before customer details
*
* This template can be overridden by copying it to yourtheme/woocommerce/cart/flexible-shipping/after_shipping_rate.php
*
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<p class="shipping-method-description">
<?php echo $method_description; ?>
</p>

View File

@@ -0,0 +1,42 @@
<?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>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Shipment tracking links
*
* This template can be overridden by copying it to yourtheme/flexible-shipping/email/after_order_table.php
*
* @author WP Desk
* @version 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<h2><?php _e( 'Shipment', 'flexible-shipping' ); ?></h2>
<?php foreach ( $shipments as $shipment ) : ?>
<p>
<?php _e( 'Track shipment: ', 'flexible-shipping' ); ?><a target="_blank" href="<?php echo $shipment['tracking_url']; ?>"><?php echo $shipment['tracking_number']; ?></a>
</p>
<?php endforeach; ?>

View File

@@ -0,0 +1,22 @@
<?php
/**
* Checkout field: ie. access point.
*
* This template can be overridden by copying it to yourtheme/flexible-shipping/email/after_order_table_checkout_field.php
*
* @author WP Desk
* @version 1.0.0
* @package Flexible Shipping.
*
* @var string $field_label
* @var string $field_value
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
?>
<h2><?php echo $field_label; /* phpcs:ignore */ ?></h2>
<p>
<?php echo $field_value; /* phpcs:ignore */ ?>
</p>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Shipment tracking links
*
* This template can be overridden by copying it to yourtheme/flexible-shipping/myaccount/after_order_table.php
*
* @author WP Desk
* @version 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<h2><?php _e( 'Shipment', 'flexible-shipping' ); ?></h2>
<?php foreach ( $shipments as $shipment ) : ?>
<p>
<?php _e( 'Track shipment: ', 'flexible-shipping' ); ?><a target="_blank" href="<?php echo $shipment['tracking_url']; ?>"><?php echo $shipment['tracking_number']; ?></a>
</p>
<?php endforeach; ?>

View File

@@ -0,0 +1,22 @@
<?php
/**
* Checkout field: ie. access point.
*
* This template can be overridden by copying it to yourtheme/flexible-shipping/my-account/after_order_table_checkout_field.php
*
* @author WP Desk
* @version 1.0.0
* @package Flexible Shipping.
*
* @var string $field_label
* @var string $field_value
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
?>
<h2><?php echo $field_label; /* phpcs:ignore */ ?></h2>
<p>
<?php echo $field_value; /* phpcs:ignore */ ?>
</p>