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: 最近订单日期

posted @ 2024-12-13 10:43  hjb1994  阅读(141)  评论(0)    收藏  举报