WooCommerce 常见的字段

产品字段(Product Fields)

ID: 产品 ID

post_title: 产品名称

post_content: 产品描述

post_excerpt: 产品简短描述

_regular_price: 常规价格

_sale_price: 售价

_sku: 库存单位编号 (SKU)

_stock_status: 库存状态(如:instockoutofstock

_weight: 产品重量

_dimensions: 产品尺寸(包含长度、宽度、高度)

_downloadable: 是否可下载(yesno

_virtual: 是否为虚拟产品(yesno

product_cat: 产品分类

product_tag: 产品标签

_thumbnail_id: 产品图片 ID

_gallery_image_ids: 产品画廊图片 IDs

 

订单字段(Order Fields)

ID: 订单 ID

post_date: 下单时间

post_status: 订单状态(如:wc-pendingwc-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 @   hjb1994  阅读(19)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
点击右上角即可分享
微信分享提示