LOGO

Web development services fast secure and SEO optimized by VertixWeb

Email:mr.wangweb@gmail.com

Get a Proposal
Get a Proposal
Contact Us

给WooCommerce订单添加一个正在运输中的状态


给WooCommerce订单添加一个正在运输中的状态

我们知道,可以通过WooCommerce搭建自己的跨境电商独立站,而默认的WooCommerce订单状态只有Completed已完成、Processing处理中、On hold保留和Cancelled已取消这几种状态,我们做跨境订单的时候物流时间会比较久,如果按照正常的显示Processing处理中对用户来说可能会造成困扰,而如果我们新增加一个运输中的状态,就会更好友好。

想要给WooCommerce的订单添加额外的自定义状态可以通过插件或者代码的方式来处理。

使用插件添加自定义订单状态

Custom Order Status for WooCommerce是一款免费给WooCommerce添加订单状态的插件,可以从WordPress后台免费安装。

插件地址

使用这款插件,还可以为自定义状态添加图标和颜色。

Custom Order Status for WooCommerce

使用代码添加自定义订单状态

使用代码添加的话可以少安装一个插件,不过小白乱改代码可能会导致网站出现错误,所以使用此方法请谨慎。

function naiba_wc_register_post_statuses() {
    register_post_status( 'wc-shipping-progress', array(
    'label' => _x( 'Shipping In Progress', 'WooCommerce Order status', 'text_domain' ),
    'public' => true,
    'exclude_from_search' => false,
    'show_in_admin_all_list' => true,
    'show_in_admin_status_list' => true,
    'label_count' => _n_noop( 'Approved (%s)', 'Approved (%s)', 'text_domain' )
    ) );
    }
    add_filter( 'init', 'naiba_wc_register_post_statuses' );
    function naiba_wc_add_order_statuses( $order_statuses ) {
        $order_statuses['wc-shipping-progress'] = _x( 'Shipping In Progress', 'WooCommerce Order status', 'text_domain' );
        return $order_statuses;
        }
add_filter( 'wc_order_statuses', 'naiba_wc_add_order_statuses' );

添加上面代码到你主题函数文件里面,保存之后就可以在订单列表状态中看到Shipping In Progress的选项。

Author:vertixweb    View: 313 Secondary    Update:2025-06-07

Home>WooCommerce>给WooCommerce订单添加一个正在运输中的状态
E-commerce Independent Website Setup Solution

2025-06-07Customized Setup Solution for Cross-Border E-Commerce WordPress + WooCommerce Independent Website for Environmental Testing Instruments

2025-06-07Cross-border E-commerce WordPress + WooCommerce Customized Solution for Electrical Instrumentation Independent Website Setup

2025-06-07Custom WordPress + WooCommerce Standalone Website Development Solution for Cross-Border E-Commerce in the Russian Market

2025-06-07WordPress + WooCommerce Cross-Border E-Commerce Independent Site Development Service Solution for European and American Markets

2025-06-07End-to-End AI Solutions for Cross-Border E-commerce

2025-06-07Cross-border e-commerce WordPress + WooCommerce medical equipment independent website customization and construction solution

2025-06-07Cross-border E-commerce Bathroom Industry WordPress + WooCommerce Independent Website Construction and Custom Development Service Solution

2025-06-07Cross-border e-commerce WordPress + WooCommerce fermented food brewing company independent site custom website development services

2025-06-07Cross-border e-commerce WordPress + WooCommerce bookstore independent site setup and custom website development solution

Marketing Optimization (MO) Solutions

2025-06-07DeepSeek Custom-Tuned Precision Translation & Multilingual Website Development Services

2025-06-07End-to-End AI Solutions for Cross-Border E-commerce

2025-06-07E-Commerce Geo-Targeting SEO Optimization Plan for Europe and the US

2025-06-07Cross-Border E-Commerce Independent Site GEO (Precision Localized SEO) Market Expansion

2025-06-07Brand Marketing Optimization (BMO)

2025-06-07AI Intelligent Optimization (AEO – Artificial Intelligence Optimization)

2025-06-07North American E-Commerce Geo-Targeting SEO Optimization Plan

2025-06-07Custom website development with DeepSeek for independent sites

2025-06-07Cross-border e-commerce independent site full-stack development and customization

Custom Theme Advantages vs. Template Theme
  • Comparison Dimension Custom Theme Generic Template Theme
  • Uniqueness 100% original design, avoiding homogenization Potentially used by hundreds of websites
  • Performance Optimization On-demand coding, no redundant code Contains a large amount of useless functional code
  • Functional Fit Perfectly matches business requirements Requires compromise or complex modifications
  • SEO Foundation SEO optimized at architectural level Generic SEO structure with limited effectiveness
  • Maintenance Cost Clean code, easy to maintain Complex nesting, difficult to maintain
  • Scalability Predefined interfaces for easy expansion Expansion limited by template constraints
  • Loading Speed Streamlined code for faster speed Redundant features slow down performance
  • Brand Image Enhances brand recognition Difficult to establish unique identity

Free application for your personalized plan


Contact Us
Website Construction
Performance Marketing Enhancement Suite(MO)

message x - -
Contact Us

Apply for your exclusive plan for free

Later Consultation

Online Consulting