码迷,mamicode.com
首页 > 编程语言 > 详细

ecshop--标签数组

时间:2015-10-15 18:21:33      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:

$properties  商品属性

技术分享
array(1) {
  ["商品属性"]=>
  array(1) {
    [178]=>
    array(2) {
      ["name"]=>
      string(12) "外观样式"
      ["value"]=>
      string(6) "滑盖"
    }
  }
}
View Code

$specification 商品规格

name  属性名称

attr_type =0 是 唯一属性  =1 是单选属性  =2 是多选属性

技术分享
array(2) {
  [185]=>
  array(3) {
    ["attr_type"]=>
    string(1) "1"
    ["name"]=>
    string(6) "颜色"
    ["values"]=>
    array(3) {
      [0]=>
      array(4) {
        ["label"]=>
        string(6) "黑色"
        ["price"]=>
        string(0) ""
        ["format_price"]=>
        string(10) "¥0.00元"
        ["id"]=>
        string(3) "196"
      }
      [1]=>
      array(4) {
        ["label"]=>
        string(6) "金色"
        ["price"]=>
        string(2) "10"
        ["format_price"]=>
        string(11) "¥10.00元"
        ["id"]=>
        string(3) "197"
      }
      [2]=>
      array(4) {
        ["label"]=>
        string(6) "白色"
        ["price"]=>
        string(2) "20"
        ["format_price"]=>
        string(11) "¥20.00元"
        ["id"]=>
        string(3) "198"
      }
    }
  }
  [210]=>
  array(3) {
    ["attr_type"]=>
    string(1) "2"
    ["name"]=>
    string(6) "配件"
    ["values"]=>
    array(3) {
      [0]=>
      array(4) {
        ["label"]=>
        string(9) "数据线"
        ["price"]=>
        string(1) "0"
        ["format_price"]=>
        string(10) "¥0.00元"
        ["id"]=>
        string(3) "251"
      }
      [1]=>
      array(4) {
        ["label"]=>
        string(12) "蓝牙耳机"
        ["price"]=>
        string(3) "122"
        ["format_price"]=>
        string(12) "¥122.00元"
        ["id"]=>
        string(3) "252"
      }
      [2]=>
      array(4) {
        ["label"]=>
        string(12) "线控耳机"
        ["price"]=>
        string(2) "20"
        ["format_price"]=>
        string(11) "¥20.00元"
        ["id"]=>
        string(3) "250"
      }
    }
  }
}
View Code

 $pictures  商品相册

技术分享
array(4) {
  [0]=>
  array(4) {
    ["img_id"]=>
    string(2) "25"
    ["img_url"]=>
    string(46) "images/200905/goods_img/19_P_1241970140820.jpg"
    ["thumb_url"]=>
    string(52) "images/200905/thumb_img/19_thumb_P_1241970140527.jpg"
    ["img_desc"]=>
    string(0) ""
  }
  [1]=>
  array(4) {
    ["img_id"]=>
    string(2) "26"
    ["img_url"]=>
    string(46) "images/200905/goods_img/19_P_1241970140600.jpg"
    ["thumb_url"]=>
    string(52) "images/200905/thumb_img/19_thumb_P_1241970140229.jpg"
    ["img_desc"]=>
    string(0) ""
  }
  [2]=>
  array(4) {
    ["img_id"]=>
    string(2) "27"
    ["img_url"]=>
    string(46) "images/200905/goods_img/19_P_1241970175007.jpg"
    ["thumb_url"]=>
    string(52) "images/200905/thumb_img/19_thumb_P_1241970175086.jpg"
    ["img_desc"]=>
    string(0) ""
  }
  [3]=>
  array(4) {
    ["img_id"]=>
    string(2) "44"
    ["img_url"]=>
    string(46) "images/201508/goods_img/19_P_1440811956860.jpg"
    ["thumb_url"]=>
    string(52) "images/201508/thumb_img/19_thumb_P_1440811956365.jpg"
    ["img_desc"]=>
    string(6) "正面"
  }
}
View Code

 $attribute_linked 相同属性的关联商品

技术分享
array(1) {
  [178]=>
  array(2) {
    ["title"]=>
    string(27) "相同外观样式的商品"
    ["goods"]=>
    array(2) {
      [9]=>
      array(8) {
        ["goods_id"]=>
        string(1) "9"
        ["goods_name"]=>
        string(12) "诺基亚E66"
        ["short_name"]=>
        string(12) "诺基亚E66"
        ["goods_thumb"]=>
        string(51) "images/200905/thumb_img/9_thumb_G_1241511871555.jpg"
        ["market_price"]=>
        string(10) "¥2758元"
        ["shop_price"]=>
        string(10) "¥2298元"
        ["promote_price"]=>
        string(7) "1999.00"
        ["url"]=>
        string(14) "goods.php?id=9"
      }
      [23]=>
      array(8) {
        ["goods_id"]=>
        string(2) "23"
        ["goods_name"]=>
        string(12) "诺基亚N96"
        ["short_name"]=>
        string(12) "诺基亚N96"
        ["goods_thumb"]=>
        string(52) "images/200905/thumb_img/23_thumb_G_1241971556399.jpg"
        ["market_price"]=>
        string(10) "¥4440元"
        ["shop_price"]=>
        string(10) "¥3700元"
        ["promote_price"]=>
        int(0)
        ["url"]=>
        string(15) "goods.php?id=23"
      }
    }
  }
}
View Code

 $bought_goods  购买此商品的还购买过什么商品

技术分享
array(1) {
  [0]=>
  array(9) {
    ["goods_id"]=>
    string(1) "9"
    ["goods_name"]=>
    string(12) "诺基亚E66"
    ["short_name"]=>
    string(12) "诺基亚E66"
    ["goods_thumb"]=>
    string(51) "images/200905/thumb_img/9_thumb_G_1241511871555.jpg"
    ["goods_img"]=>
    string(45) "images/200905/goods_img/9_G_1241511871574.jpg"
    ["shop_price"]=>
    string(10) "¥2298元"
    ["url"]=>
    string(14) "goods.php?id=9"
    ["promote_price"]=>
    string(7) "1999.00"
    ["formated_promote_price"]=>
    string(10) "¥1999元"
  }
}
View Code

 $helps  底部帮助标签

技术分享
array(6) {
  [5]=>
  array(3) {
    ["cat_id"]=>
    string(20) "article_cat.php?id=5"
    ["cat_name"]=>
    string(13) "新手上路 "
    ["article"]=>
    array(3) {
      [0]=>
      array(4) {
        ["article_id"]=>
        string(1) "9"
        ["title"]=>
        string(12) "售后流程"
        ["short_title"]=>
        string(12) "售后流程"
        ["url"]=>
        string(16) "article.php?id=9"
      }
      [1]=>
      array(4) {
        ["article_id"]=>
        string(2) "10"
        ["title"]=>
        string(12) "购物流程"
        ["short_title"]=>
        string(12) "购物流程"
        ["url"]=>
        string(17) "article.php?id=10"
      }
      [2]=>
      array(4) {
        ["article_id"]=>
        string(2) "11"
        ["title"]=>
        string(12) "订购方式"
        ["short_title"]=>
        string(12) "订购方式"
        ["url"]=>
        string(17) "article.php?id=11"
      }
    }
  }
  [6]=>
  array(3) {
    ["cat_id"]=>
    string(20) "article_cat.php?id=6"
    ["cat_name"]=>
    string(13) "手机常识 "
    ["article"]=>
    array(3) {
      [3]=>
      array(4) {
        ["article_id"]=>
        string(2) "12"
        ["title"]=>
        string(24) "如何分辨原装电池"
        ["short_title"]=>
        string(24) "如何分辨原装电池"
        ["url"]=>
        string(17) "article.php?id=12"
      }
      [4]=>
      array(4) {
        ["article_id"]=>
        string(2) "13"
        ["title"]=>
        string(25) "如何分辨水货手机 "
        ["short_title"]=>
        string(24) "如何分辨水货手机"
        ["url"]=>
        string(17) "article.php?id=13"
      }
      [5]=>
      array(4) {
        ["article_id"]=>
        string(2) "14"
        ["title"]=>
        string(24) "如何享受全国联保"
        ["short_title"]=>
        string(24) "如何享受全国联保"
        ["url"]=>
        string(17) "article.php?id=14"
      }
    }
  }
  [7]=>
  array(3) {
    ["cat_id"]=>
    string(20) "article_cat.php?id=7"
    ["cat_name"]=>
    string(16) "配送与支付 "
    ["article"]=>
    array(3) {
      [6]=>
      array(4) {
        ["article_id"]=>
        string(2) "15"
        ["title"]=>
        string(18) "货到付款区域"
        ["short_title"]=>
        string(18) "货到付款区域"
        ["url"]=>
        string(17) "article.php?id=15"
      }
      [7]=>
      array(4) {
        ["article_id"]=>
        string(2) "16"
        ["title"]=>
        string(25) "配送支付智能查询 "
        ["short_title"]=>
        string(24) "配送支付智能查询"
        ["url"]=>
        string(17) "article.php?id=16"
      }
      [8]=>
      array(4) {
        ["article_id"]=>
        string(2) "17"
        ["title"]=>
        string(18) "支付方式说明"
        ["short_title"]=>
        string(18) "支付方式说明"
        ["url"]=>
        string(17) "article.php?id=17"
      }
    }
  }
  [10]=>
  array(3) {
    ["cat_id"]=>
    string(21) "article_cat.php?id=10"
    ["cat_name"]=>
    string(12) "会员中心"
    ["article"]=>
    array(3) {
      [9]=>
      array(4) {
        ["article_id"]=>
        string(2) "18"
        ["title"]=>
        string(12) "资金管理"
        ["short_title"]=>
        string(12) "资金管理"
        ["url"]=>
        string(17) "article.php?id=18"
      }
      [10]=>
      array(4) {
        ["article_id"]=>
        string(2) "19"
        ["title"]=>
        string(12) "我的收藏"
        ["short_title"]=>
        string(12) "我的收藏"
        ["url"]=>
        string(17) "article.php?id=19"
      }
      [11]=>
      array(4) {
        ["article_id"]=>
        string(2) "20"
        ["title"]=>
        string(12) "我的订单"
        ["short_title"]=>
        string(12) "我的订单"
        ["url"]=>
        string(17) "article.php?id=20"
      }
    }
  }
  [8]=>
  array(3) {
    ["cat_id"]=>
    string(20) "article_cat.php?id=8"
    ["cat_name"]=>
    string(13) "服务保证 "
    ["article"]=>
    array(3) {
      [12]=>
      array(4) {
        ["article_id"]=>
        string(2) "21"
        ["title"]=>
        string(15) "退换货原则"
        ["short_title"]=>
        string(15) "退换货原则"
        ["url"]=>
        string(17) "article.php?id=21"
      }
      [13]=>
      array(4) {
        ["article_id"]=>
        string(2) "22"
        ["title"]=>
        string(19) "售后服务保证 "
        ["short_title"]=>
        string(18) "售后服务保证"
        ["url"]=>
        string(17) "article.php?id=22"
      }
      [14]=>
      array(4) {
        ["article_id"]=>
        string(2) "23"
        ["title"]=>
        string(19) "产品质量保证 "
        ["short_title"]=>
        string(18) "产品质量保证"
        ["url"]=>
        string(17) "article.php?id=23"
      }
    }
  }
  [9]=>
  array(3) {
    ["cat_id"]=>
    string(20) "article_cat.php?id=9"
    ["cat_name"]=>
    string(13) "联系我们 "
    ["article"]=>
    array(3) {
      [15]=>
      array(4) {
        ["article_id"]=>
        string(2) "24"
        ["title"]=>
        string(18) "网站故障报告"
        ["short_title"]=>
        string(18) "网站故障报告"
        ["url"]=>
        string(17) "article.php?id=24"
      }
      [16]=>
      array(4) {
        ["article_id"]=>
        string(2) "25"
        ["title"]=>
        string(13) "选机咨询 "
        ["short_title"]=>
        string(12) "选机咨询"
        ["url"]=>
        string(17) "article.php?id=25"
      }
      [17]=>
      array(4) {
        ["article_id"]=>
        string(2) "26"
        ["title"]=>
        string(16) "投诉与建议 "
        ["short_title"]=>
        string(15) "投诉与建议"
        ["url"]=>
        string(17) "article.php?id=26"
      }
    }
  }
}
View Code

 

ecshop--标签数组

标签:

原文地址:http://www.cnblogs.com/fang8580/p/4768539.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!