订单

保存订单时的数据结构

Array
(
    [order_id] => 20120220129928                                              //订单id
    [member_id] => 10                                                         //购买会员id
    [confirm] => N                                                            //
    [status] => active
    [pay_status] => 0
    [ship_status] => 0
    [is_delivery] => Y
    [createtime] => 1329712821
    [last_modified] => 1329712821
    [memo] => 
    [ip] => 127.0.0.1
    [title] => 订单明细介绍
    [shipping] => Array
        (
            [shipping_id] => 1
            [is_protect] => false
            [shipping_name] => 快递
            [cost_shipping] => 10.00
            [cost_protect] => 0.00
        )

    [payinfo] => Array
        (
            [pay_app_id] => deposit
            [cost_payment] => 0.00
        )

    [currency] => CNY
    [cur_rate] => 1.0000
    [is_tax] => false
    [tax_title] => 
    [weight] => 0
    [itemnum] => 4
    [cost_item] => 584.00
    [cost_tax] => 0
    [total_amount] => 537.28
    [cur_amount] => 537.28
    [pmt_goods] => 0.00
    [pmt_order] => 56.72
    [discount] => 0.00
    [payed] => 0.00
    [score_u] => 0
    [score_g] => 11680
    [consignee] => Array
        (
            [name] => 123
            [addr] => 上海市卢湾区123
            [zip] => 
            [telephone] => 
            [mobile] => 123
            [email] => 
            [area] => mainland:上海/上海市/卢湾区:24
            [r_time] => 任意日期任意时间段
            [meta] => Array
                (
                )

        )

    [order_objects] => Array
        (
            [0] => Array
                (
                    [order_id] => 20120220129928
                    [obj_type] => goods
                    [obj_alias] => 商品区块
                    [goods_id] => 12
                    [bn] => P4C85ACA92DCE7
                    [name] => TATA民族风小碎花坡跟凉鞋
                    [price] => 298.000
                    [quantity] => 1
                    [amount] => 0.00
                    [weight] => 0.00
                    [score] => 5960.00
                    [order_items] => Array
                        (
                            [0] => Array
                                (
                                    [products] => Array
                                        (
                                            [product_id] => 175
                                        )

                                    [goods_id] => 12
                                    [order_id] => 20120220129928
                                    [item_type] => product
                                    [bn] => P4C85ACA92DCE7
                                    [name] => TATA民族风小碎花坡跟凉鞋
                                    [type_id] => 5
                                    [cost] => 168.000
                                    [quantity] => 1.00
                                    [sendnum] => 0
                                    [amount] => 298.00
                                    [score] => 5960.00
                                    [price] => 298.00
                                    [g_price] => 298.00
                                    [weight] => 
                                    [addon] => a:1:{s:12:"product_attr";a:2:{i:1;a:2:{s:5:"label";s:6:"颜色";s:5:"value";s:9:"米黄色";}i:3;a:2:{s:5:"label";s:6:"尺码";s:5:"value";s:2:"35";}}}
                                )

                        )

                )

            [1] => Array
                (
                    [order_id] => 20120220129928
                    [obj_type] => goods
                    [obj_alias] => 商品区块
                    [goods_id] => 61
                    [bn] => P4C933FC5D97E6
                    [name] => 抽绳连体背带短裤
                    [price] => 99.000
                    [quantity] => 1
                    [amount] => 0.00
                    [weight] => 0.00
                    [score] => 1980.00
                    [order_items] => Array
                        (
                            [0] => Array
                                (
                                    [products] => Array
                                        (
                                            [product_id] => 444
                                        )

                                    [goods_id] => 61
                                    [order_id] => 20120220129928
                                    [item_type] => product
                                    [bn] => P4C933FC5D97E6
                                    [name] => 抽绳连体背带短裤
                                    [type_id] => 2
                                    [cost] => 0.000
                                    [quantity] => 1.00
                                    [sendnum] => 0
                                    [amount] => 99.00
                                    [score] => 1980.00
                                    [price] => 99.00
                                    [g_price] => 99.00
                                    [weight] => 
                                    [addon] => a:1:{s:12:"product_attr";a:2:{i:1;a:2:{s:5:"label";s:6:"颜色";s:5:"value";s:6:"黑色";}i:2;a:2:{s:5:"label";s:6:"尺码";s:5:"value";s:1:"L";}}}
                                )

                        )

                )

        )

    [order_pmt] => Array
        (
            [0] => Array
                (
                    [pmt_id] => 1
                    [order_id] => 20120220129928
                    [pmt_type] => order
                    [pmt_amount] => 46.72
                    [pmt_memo] => 全场购物满100打8折!
                    [pmt_describe] => 全场购物满100打8折
                )

            [1] => Array
                (
                    [pmt_id] => 3
                    [order_id] => 20120220129928
                    [pmt_type] => coupon
                    [pmt_amount] => 10
                    [pmt_memo] => 优惠劵规则-测试1
                    [pmt_describe] => 所有订单免运费
                )

        )

)

以下为数据结构具体解析

键值 类型 说明 示例
order_id 订单id
member_id 会员id
confirm
status 订单状态
pay_status 支付状态
ship_status 送货状态
is_delivery
createtime 创建时间
last_modified 最后更新时间
memo
ip
title 定点描述
shipping 配送方式信息
payinfo 支付方式信息
currency 货币
cur_rate 货币比率
is_tax
tax_title
weight 货物称重
itemnum 购买数量
cost_item 成本费
cost_tax 成本税金
total_amount 订单总价格
cur_amount 支付总金额
pmt_goods 商品优惠额
pmt_order 订单优惠额
discount 折扣
payed 已支付金额
score_u
score_g
consignee 送货信息
order_objects 订单区域块
order_pmt

支付订单时的数据结构

Array
(
    [order_id] => 20120220115385
    [payinfo] => Array
        (
            [pay_app_id] => alipay
            [cost_payment] => 0.00
        )

    [total_amount] => 601.56
    [cur_amount] => 601.56
)
Array
(
    [order_id] => 20120220115385
    [money] => 601.56
    [currency] => CNY
    [cur_money] => 601.56
    [cur_rate] => 1.0000
    [cur_def] => ¥
    [pay_app_id] => alipay
    [cost_payment] => 0.000
    [cur_amount] => 601.56
    [memo] => 
    [payment_id] => 13298189406354
    [member_id] => 10
    [pay_object] => order
    [shopName] => 点此设置您商店的名称
    [total_amount] => 601.560
    [payed] => 0.000
    [payinfo] => Array
        (
            [cost_payment] => 0.000
        )

    [rel_id] => 20120220115385
    [return_url] => /ecstore_bugfix/index.php/paycenter-result-13298189406354.html
    [status] => ready
    [account] => 点此设置您商店的名称
    [bank] => 支付宝
    [pay_account] => 非会员顾客
    [paycost] => 0.000
    [pay_type] => online
    [pay_name] => 支付宝
    [pay_ver] => 1.0
    [op_id] => 10
    [ip] => 127.0.0.1
    [t_begin] => 1329818941
    [t_payed] => 1329818941
    [t_confirm] => 1329818941
    [trade_no] => 
    [orders] => Array
        (
            [0] => Array
                (
                    [rel_id] => 20120220115385
                    [bill_type] => payments
                    [pay_object] => order
                    [bill_id] => 13298189406354
                    [money] => 601.56
                )

        )

)

键值 类型 说明 示例

內容目录

上一个主题

webshell

下一个主题

desktop_controller

快速搜索

输入相关的模块,术语,类或者函数名称进行搜索