mirror of
https://github.com/woodchen-ink/czlexpress-for-woocommerce.git
synced 2025-07-19 14:31:59 +08:00
- Renamed the plugin from "woocommerce-czlexpress" to "CZL Express for WooCommerce" for better branding. - Updated README and readme.txt files to reflect the new plugin name and improved description. - Enhanced system requirements to support PHP 8.0 and tested compatibility with WordPress 6.7. - Removed outdated files and references, including the main plugin file and language files. - Improved localization by updating text domain references throughout the codebase. - Streamlined the admin interface for better usability, including updated labels and descriptions. These changes enhance the clarity, performance, and user experience of the CZL Express plugin.
61 lines
2.4 KiB
PHP
61 lines
2.4 KiB
PHP
<?php
|
|
/**
|
|
* 运费方式分组显示模板
|
|
*/
|
|
defined('ABSPATH') || exit;
|
|
?>
|
|
|
|
<tr class="shipping-method-group">
|
|
<td>
|
|
<input type="radio"
|
|
name="shipping_method[<?php echo esc_attr($index); ?>]"
|
|
data-index="<?php echo esc_attr($index); ?>"
|
|
value="<?php echo esc_attr($rate->id); ?>"
|
|
class="shipping_method"
|
|
<?php checked($rate->id, $chosen_method); ?> />
|
|
</td>
|
|
<td>
|
|
<label for="shipping_method_<?php echo esc_attr($index); ?>">
|
|
<?php echo wp_kses_post($rate->label); ?>
|
|
<?php if (!empty($rate->has_sub_methods)): ?>
|
|
<span class="toggle-sub-methods dashicons dashicons-arrow-down-alt2"></span>
|
|
<?php endif; ?>
|
|
</label>
|
|
|
|
<?php if ($rate->remote_fee > 0): ?>
|
|
<div class="remote-fee-notice">
|
|
<?php
|
|
/* translators: %s: Remote area fee amount */
|
|
printf(
|
|
esc_html__('Remote Area Fee: %s', 'czlexpress-for-woocommerce'),
|
|
wp_kses_post(wc_price($rate->remote_fee))
|
|
);
|
|
?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if (!empty($rate->has_sub_methods)): ?>
|
|
<div class="sub-methods" style="display: none;">
|
|
<table class="sub-methods-table">
|
|
<thead>
|
|
<tr>
|
|
<th><?php esc_html_e('Method', 'czlexpress-for-woocommerce'); ?></th>
|
|
<th><?php esc_html_e('Delivery Time', 'czlexpress-for-woocommerce'); ?></th>
|
|
<th><?php esc_html_e('Cost', 'czlexpress-for-woocommerce'); ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($rate->sub_methods as $sub_method): ?>
|
|
<tr>
|
|
<td><?php echo esc_html($sub_method['method_title']); ?></td>
|
|
<td><?php echo esc_html($sub_method['delivery_time']); ?></td>
|
|
<td><?php echo wp_kses_post(wc_price($sub_method['cost'])); ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
</td>
|
|
<td><?php echo wp_kses_post(wc_price($rate->cost)); ?></td>
|
|
</tr>
|