/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.19.12
Requires at least:    6.4
Requires PHP:         7.4
WC requires at least: 8.3
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/
// 为 WooCommerce 订单号添加前缀 (例如: ORD-1001)
add_filter( 'woocommerce_order_number', 'custom_woocommerce_order_number', 10, 2 );
function custom_woocommerce_order_number( $order_id, $order ) {
    $prefix = 'ORD-'; // 97801
    return $prefix . $order_id;
}

