/**
* Obtain the associated items of a specified item
* @ Position goods. php
* @ Access public
* @ Param integer $ goods_id
* @ Return Array
*/
Get_pai_goods ($ Goods_id)
Array (1) {[13] => array (9) {["goods_id"] => string (2) "13" ["goods_name"] => string (25) "Nokia 5320 xpressmusic" ["short_name"] => string (16) "Nokia 5320... "[" goods_thumb "] => string (52)" images/200905/thumb_img/13_thumb_g_1241968002527.jpg "[" goods_img "] => string (46) "images/200905/goods_img/13_g_1241968002233.jpg" ["market_price"] => string (10) "$1573" ["shop_price"] => string (10) "$1311" ["url"] => String (15) "goods. php? Id = 13 "[" promote_price "] => int (0 )}}
/**
* Items bought by the person who bought the item
* @ Position goods. php
* @ Access public
* @ Param integer $ goods_id
* @ Return Array
*/
Function get_also_bought ($ Goods_id)
Array (3) {[0] => array (9) {["goods_id"] => string (2) "24" ["goods_name"] => string (4) "p806" ["short_name"] => string (4) "p806" ["goods_thumb"] => string (52) "images/200905/thumb_img/images" ["goods_img"] => string (46) "images/200905/goods_img/24_g_1241971981284.jpg" ["shop_price"] => string (10) "$2000" ["url"] => string (15) "goods. PHP? Id = 24 "[" promote_price "] => int (0) [" formated_promote_price "] => string (7) "$0 RMB"} [1] => array (9) {["goods_id"] => string (1) "8" ["goods_name"] => string (13) "Philips 9 @ 9 V" ["short_name"] => string (13) "Philips 9 @ 9 V" ["goods_thumb"] => string (51) "images/200905/thumb_img/8_thumb_g_1241425513488.jpg" ["goods_img"] => string (45) "images/200905/goods_img/8_g_1241425513055.jpg" ["shop_price"] => string (9) "$39 9 yuan "[" url "] => string (14)" goods. php? Id = 8 "[" promote_price "] => int (0) [" formated_promote_price "] => string (7)" $0 "}}
/**
* Obtain the accessories of the commodities in the shopping cart.
* @ Position lib_goods.php
* @ Access public
* @ Param array $ goods_list, an array containing the item ID
* @ Return Array
*/
Get_goods_fit.pdf ($ Goods_list = array ())
Array (3) {[0] => array (11) {["parent_id"] => string (1) "9" ["parent_name"] => string (12) "Nokia e66" ["parent_short_name"] => string (12) "Nokia e66" ["goods_id"] => string (1) "3" ["goods_name"] => string (25) "Nokia original 5800 headphones" ["short_name"] => string (20) "Nokia original 58... "[" fittings_price "] => string (8)" $68 "[" shop_price "] => string (8) "$68" ["goods_thumb"] => string (51) "images/200905/thumb_img/3_thumb_g_12 41422082679. jpg "[" goods_img "] => string (45)" images/200905/goods_img/3_g_1241422082168.jpg "[" url "] => string (14)" goods. php? Id = 3 "} [1] => array (11) {[" parent_id "] => string (1)" 9 "[" parent_name "] => string (12) "Nokia e66" ["parent_short_name"] => string (12) "Nokia e66" ["goods_id"] => string (1) "4" ["goods_name"] => string (27) "Nokia n85 original charger" ["short_name"] => string (18) "Nokia n85 original... "[" fittings_price "] => string (8)" $58 "[" shop_price "] => string (8) "$58 RMB" ["goods_thumb"] => string (51) "images/200905/thumb_img/4_thumb_g_12414 22402467. jpg "[" goods_img "] => string (45)" images/200905/goods_img/4_g_1241422402722.jpg "[" url "] => string (14)" goods. php? Id = 4 "}}
/**
* Obtain the sales ranking
* @ Position lib_custom.php
* @ Access public
* @ Param num $ Time query time range, in days
* @ Param num $ limit quantity
* @ Param string $ category expression of the cats Query
* @ Return Array
*/
Get_sale_rank ($ Time = 7, $ Limit = 10, $ cats ='')