WooCommerce 常见的字段
产品字段(Product Fields)
•ID: 产品 ID
•post_title: 产品名称
•post_content: 产品描述
•post_excerpt: 产品简短描述
•_regular_price: 常规价格
•_sale_price: 售价
•_sku: 库存单位编号 (SKU)
• _stock_status: 库存状态(如:instock、outofstock)
•_weight: 产品重量
•_dimensions: 产品尺寸(包含长度、宽度、高度)
•_downloadable: 是否可下载(yes 或 no)
•_virtual: 是否为虚拟产品(yes 或 no)
•product_cat: 产品分类
•product_tag: 产品标签
•_thumbnail_id: 产品图片 ID
•_gallery_image_ids: 产品画廊图片 IDs
订单字段(Order Fields)
•ID: 订单 ID
•post_date: 下单时间
• post_status: 订单状态(如:wc-pending、wc-completed)
•_billing_first_name: 账单名
•_billing_last_name: 账单姓
•_billing_email: 账单邮箱
•_billing_phone: 账单电话
•_shipping_first_name: 收货名
•_shipping_last_name: 收货姓
•_shipping_address_1: 收货地址 1
•_shipping_address_2: 收货地址 2
•_order_total: 订单总金额
•_order_currency: 订单货币
•_payment_method: 支付方式
•_cart_discount: 购物车折扣
•_order_shipping: 运费
客户字段(Customer Fields)
•ID: 客户 ID
•user_login: 用户名
•user_email: 邮箱地址
•first_name: 名
•last_name: 姓
•billing_address: 账单地址
•shipping_address: 收货地址
•order_count: 订单数量
•total_spent: 总消费金额
•last_order_date: 最近订单日期
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架