ECJiaWiki:Api:cart cart list api
跳到导航
跳到搜索
应用场景
获得购物车中的商品
接口名称
cart_list
请求参数
字段名 | 变量名 | 必填 | 类型 | 示例值 | 描述 |
---|---|---|---|---|---|
购物车ID | cart_id | 是 | int | 购物车ID | |
rec_type | flow_type | 否 | string | CART_GENERAL_GOODS | rec_type |
店铺ID组 | store_group | 否 | array() | 店铺ID组 |
举例如下
RC_Api::api('cart', 'cart_list', array('cart_id' => $cart_id, 'flow_type' => $flow_type, 'store_group' => $store_id_group))
成功举例如下
CONTENT: Array ( [goods_list] => Array ( ) [total] => Array ( [goods_price] => ¥0.00 [market_price] => ¥0.00 [saving] => ¥0.00 [save_rate] => 0 [goods_amount] => 0 [goods_number] => 0 [unformatted_goods_price] => 0 [unformatted_market_price] => 0 [real_goods_count] => 0 [virtual_goods_count] => 0 ) )