注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

面包会有的

...

 
 
 

日志

 
 

shopnc二次开发-为登陆的卖家增加地区信息  

2015-09-10 17:21:48|  分类: shopnc |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
包括:
省市县三级地区的id及中文名
地区馆的id及中文名

前面,地区的信息在审核开店申请时,已经保存到库。
当前,只需要在卖家登陆时,将相关的信息存到session变量即可。

代码:
shopnc二次开发-为登陆的卖家增加地区信息 - 加菲 - 加菲

这些代码很简单,都是从登陆时其它动作复制后修改的,值换成$store_info的元素值即可。
 

用var_dump($_SESSION)打印变量,如下:
header("Content-type:text/html;charset=utf-8");
var_dump($_SESSION);exit;
输出内容:

array(25) { ["is_login"]=> string(1) "1" ["member_id"]=> string(2) "23" ["member_name"]=> string(6) "111111" ["member_email"]=> string(16) "791314068@qq.com" ["is_buy"]=> string(1) "1" ["avatar"]=> string(0) "" ["grade_id"]=> string(1) "1" ["seller_id"]=> string(2) "13" ["seller_name"]=> string(6) "111111" ["seller_is_admin"]=> int(1) ["store_id"]=> int(13) ["store_name"]=> string(27) "张家庄土特产旗舰店" ["seller_limits"]=> array(1) { [0]=> string(0) "" } ["seller_group_name"]=> string(9) "管理员" ["seller_last_login_time"]=> string(16) "2015-09-10 17:23" ["seller_menu"]=> array(10) { ["goods"]=> array(2) { ["name"]=> string(6) "商品" ["child"]=> array(7) { [0]=> array(3) { ["name"]=> string(12) "商品发布" ["act"]=> string(15) "store_goods_add" ["op"]=> string(5) "index" } [1]=> array(3) { ["name"]=> string(18) "出售中的商品" ["act"]=> string(18) "store_goods_online" ["op"]=> string(5) "index" } [2]=> array(3) { ["name"]=> string(18) "仓库中的商品" ["act"]=> string(19) "store_goods_offline" ["op"]=> string(5) "index" } [3]=> array(3) { ["name"]=> string(12) "库存警报" ["act"]=> string(19) "store_storage_alarm" ["op"]=> string(5) "index" } [4]=> array(3) { ["name"]=> string(12) "关联板式" ["act"]=> string(11) "store_plate" ["op"]=> string(5) "index" } [5]=> array(3) { ["name"]=> string(12) "商品规格" ["act"]=> string(10) "store_spec" ["op"]=> string(5) "index" } [6]=> array(3) { ["name"]=> string(12) "图片空间" ["act"]=> string(11) "store_album" ["op"]=> string(10) "album_cate" } } } ["order"]=> array(2) { ["name"]=> string(6) "订单" ["child"]=> array(5) { [0]=> array(3) { ["name"]=> string(12) "订单管理" ["act"]=> string(11) "store_order" ["op"]=> string(5) "index" } [1]=> array(3) { ["name"]=> string(6) "发货" ["act"]=> string(13) "store_deliver" ["op"]=> string(5) "index" } [2]=> array(3) { ["name"]=> string(12) "发货设置" ["act"]=> string(17) "store_deliver_set" ["op"]=> string(13) "daddress_list" } [3]=> array(3) { ["name"]=> string(12) "评价管理" ["act"]=> string(14) "store_evaluate" ["op"]=> string(4) "list" } [4]=> array(3) { ["name"]=> string(12) "打印设置" ["act"]=> string(16) "store_printsetup" ["op"]=> string(5) "index" } } } ["promotion"]=> array(2) { ["name"]=> string(6) "促销" ["child"]=> array(7) { [0]=> array(3) { ["name"]=> string(12) "团购管理" ["act"]=> string(14) "store_groupbuy" ["op"]=> string(5) "index" } [1]=> array(3) { ["name"]=> string(12) "限时折扣" ["act"]=> string(23) "store_promotion_xianshi" ["op"]=> string(12) "xianshi_list" } [2]=> array(3) { ["name"]=> string(9) "满即送" ["act"]=> string(23) "store_promotion_mansong" ["op"]=> string(12) "mansong_list" } [3]=> array(3) { ["name"]=> string(12) "优惠套装" ["act"]=> string(24) "store_promotion_bundling" ["op"]=> string(13) "bundling_list" } [4]=> array(3) { ["name"]=> string(12) "推荐展位" ["act"]=> string(21) "store_promotion_booth" ["op"]=> string(16) "booth_goods_list" } [5]=> array(3) { ["name"]=> string(15) "代金券管理" ["act"]=> string(13) "store_voucher" ["op"]=> string(12) "templatelist" } [6]=> array(3) { ["name"]=> string(12) "活动管理" ["act"]=> string(14) "store_activity" ["op"]=> string(14) "store_activity" } } } ["store"]=> array(2) { ["name"]=> string(6) "店铺" ["child"]=> array(6) { [0]=> array(3) { ["name"]=> string(12) "店铺设置" ["act"]=> string(13) "store_setting" ["op"]=> string(13) "store_setting" } [1]=> array(3) { ["name"]=> string(12) "店铺导航" ["act"]=> string(16) "store_navigation" ["op"]=> string(15) "navigation_list" } [2]=> array(3) { ["name"]=> string(12) "店铺动态" ["act"]=> string(9) "store_sns" ["op"]=> string(5) "index" } [3]=> array(3) { ["name"]=> string(12) "店铺信息" ["act"]=> string(10) "store_info" ["op"]=> string(10) "store_info" } [4]=> array(3) { ["name"]=> string(12) "店铺分类" ["act"]=> string(17) "store_goods_class" ["op"]=> string(5) "index" } [5]=> array(3) { ["name"]=> string(12) "品牌申请" ["act"]=> string(11) "store_brand" ["op"]=> string(10) "brand_list" } } } ["transport"]=> array(2) { ["name"]=> string(6) "物流" ["child"]=> array(2) { [0]=> array(3) { ["name"]=> string(12) "物流工具" ["act"]=> string(15) "store_transport" ["op"]=> string(5) "index" } [1]=> array(3) { ["name"]=> string(15) "免运费额度" ["act"]=> string(18) "store_free_freight" ["op"]=> string(5) "index" } } } ["consult"]=> array(2) { ["name"]=> string(6) "客服" ["child"]=> array(3) { [0]=> array(3) { ["name"]=> string(12) "客服设置" ["act"]=> string(16) "store_callcenter" ["op"]=> string(5) "index" } [1]=> array(3) { ["name"]=> string(12) "咨询管理" ["act"]=> string(13) "store_consult" ["op"]=> string(12) "consult_list" } [2]=> array(3) { ["name"]=> string(12) "投诉管理" ["act"]=> string(14) "store_complain" ["op"]=> string(4) "list" } } } ["service"]=> array(2) { ["name"]=> string(6) "售后" ["child"]=> array(2) { [0]=> array(3) { ["name"]=> string(12) "退款记录" ["act"]=> string(12) "store_refund" ["op"]=> string(5) "index" } [1]=> array(3) { ["name"]=> string(12) "退货记录" ["act"]=> string(12) "store_return" ["op"]=> string(5) "index" } } } ["settle"]=> array(2) { ["name"]=> string(6) "结算" ["child"]=> array(1) { [0]=> array(3) { ["name"]=> string(12) "结算管理" ["act"]=> string(10) "store_bill" ["op"]=> string(5) "index" } } } ["statistics"]=> array(2) { ["name"]=> string(6) "统计" ["child"]=> array(3) { [0]=> array(3) { ["name"]=> string(12) "流量统计" ["act"]=> string(15) "statistics_flow" ["op"]=> string(15) "flow_statistics" } [1]=> array(3) { ["name"]=> string(12) "销量统计" ["act"]=> string(15) "statistics_sale" ["op"]=> string(15) "sale_statistics" } [2]=> array(3) { ["name"]=> string(15) "购买率统计" ["act"]=> string(22) "statistics_probability" ["op"]=> string(22) "probability_statistics" } } } ["account"]=> array(2) { ["name"]=> string(6) "帐号" ["child"]=> array(4) { [0]=> array(3) { ["name"]=> string(12) "帐号列表" ["act"]=> string(13) "store_account" ["op"]=> string(12) "account_list" } [1]=> array(3) { ["name"]=> string(9) "帐号组" ["act"]=> string(19) "store_account_group" ["op"]=> string(10) "group_list" } [2]=> array(3) { ["name"]=> string(12) "帐号日志" ["act"]=> string(10) "seller_log" ["op"]=> string(8) "log_list" } [3]=> array(3) { ["name"]=> string(12) "店铺消费" ["act"]=> string(10) "store_cost" ["op"]=> string(9) "cost_list" } } } } ["seller_function_list"]=> array(40) { ["store_goods_add"]=> array(5) { ["model"]=> string(5) "goods" ["model_name"]=> string(6) "商品" ["name"]=> string(12) "商品发布" ["act"]=> string(15) "store_goods_add" ["op"]=> string(5) "index" } ["store_goods_online"]=> array(5) { ["model"]=> string(5) "goods" ["model_name"]=> string(6) "商品" ["name"]=> string(18) "出售中的商品" ["act"]=> string(18) "store_goods_online" ["op"]=> string(5) "index" } ["store_goods_offline"]=> array(5) { ["model"]=> string(5) "goods" ["model_name"]=> string(6) "商品" ["name"]=> string(18) "仓库中的商品" ["act"]=> string(19) "store_goods_offline" ["op"]=> string(5) "index" } ["store_storage_alarm"]=> array(5) { ["model"]=> string(5) "goods" ["model_name"]=> string(6) "商品" ["name"]=> string(12) "库存警报" ["act"]=> string(19) "store_storage_alarm" ["op"]=> string(5) "index" } ["store_plate"]=> array(5) { ["model"]=> string(5) "goods" ["model_name"]=> string(6) "商品" ["name"]=> string(12) "关联板式" ["act"]=> string(11) "store_plate" ["op"]=> string(5) "index" } ["store_spec"]=> array(5) { ["model"]=> string(5) "goods" ["model_name"]=> string(6) "商品" ["name"]=> string(12) "商品规格" ["act"]=> string(10) "store_spec" ["op"]=> string(5) "index" } ["store_album"]=> array(5) { ["model"]=> string(5) "goods" ["model_name"]=> string(6) "商品" ["name"]=> string(12) "图片空间" ["act"]=> string(11) "store_album" ["op"]=> string(10) "album_cate" } ["store_order"]=> array(5) { ["model"]=> string(5) "order" ["model_name"]=> string(6) "订单" ["name"]=> string(12) "订单管理" ["act"]=> string(11) "store_order" ["op"]=> string(5) "index" } ["store_deliver"]=> array(5) { ["model"]=> string(5) "order" ["model_name"]=> string(6) "订单" ["name"]=> string(6) "发货" ["act"]=> string(13) "store_deliver" ["op"]=> string(5) "index" } ["store_deliver_set"]=> array(5) { ["model"]=> string(5) "order" ["model_name"]=> string(6) "订单" ["name"]=> string(12) "发货设置" ["act"]=> string(17) "store_deliver_set" ["op"]=> string(13) "daddress_list" } ["store_evaluate"]=> array(5) { ["model"]=> string(5) "order" ["model_name"]=> string(6) "订单" ["name"]=> string(12) "评价管理" ["act"]=> string(14) "store_evaluate" ["op"]=> string(4) "list" } ["store_printsetup"]=> array(5) { ["model"]=> string(5) "order" ["model_name"]=> string(6) "订单" ["name"]=> string(12) "打印设置" ["act"]=> string(16) "store_printsetup" ["op"]=> string(5) "index" } ["store_groupbuy"]=> array(5) { ["model"]=> string(9) "promotion" ["model_name"]=> string(6) "促销" ["name"]=> string(12) "团购管理" ["act"]=> string(14) "store_groupbuy" ["op"]=> string(5) "index" } ["store_promotion_xianshi"]=> array(5) { ["model"]=> string(9) "promotion" ["model_name"]=> string(6) "促销" ["name"]=> string(12) "限时折扣" ["act"]=> string(23) "store_promotion_xianshi" ["op"]=> string(12) "xianshi_list" } ["store_promotion_mansong"]=> array(5) { ["model"]=> string(9) "promotion" ["model_name"]=> string(6) "促销" ["name"]=> string(9) "满即送" ["act"]=> string(23) "store_promotion_mansong" ["op"]=> string(12) "mansong_list" } ["store_promotion_bundling"]=> array(5) { ["model"]=> string(9) "promotion" ["model_name"]=> string(6) "促销" ["name"]=> string(12) "优惠套装" ["act"]=> string(24) "store_promotion_bundling" ["op"]=> string(13) "bundling_list" } ["store_promotion_booth"]=> array(5) { ["model"]=> string(9) "promotion" ["model_name"]=> string(6) "促销" ["name"]=> string(12) "推荐展位" ["act"]=> string(21) "store_promotion_booth" ["op"]=> string(16) "booth_goods_list" } ["store_voucher"]=> array(5) { ["model"]=> string(9) "promotion" ["model_name"]=> string(6) "促销" ["name"]=> string(15) "代金券管理" ["act"]=> string(13) "store_voucher" ["op"]=> string(12) "templatelist" } ["store_activity"]=> array(5) { ["model"]=> string(9) "promotion" ["model_name"]=> string(6) "促销" ["name"]=> string(12) "活动管理" ["act"]=> string(14) "store_activity" ["op"]=> string(14) "store_activity" } ["store_setting"]=> array(5) { ["model"]=> string(5) "store" ["model_name"]=> string(6) "店铺" ["name"]=> string(12) "店铺设置" ["act"]=> string(13) "store_setting" ["op"]=> string(13) "store_setting" } ["store_navigation"]=> array(5) { ["model"]=> string(5) "store" ["model_name"]=> string(6) "店铺" ["name"]=> string(12) "店铺导航" ["act"]=> string(16) "store_navigation" ["op"]=> string(15) "navigation_list" } ["store_sns"]=> array(5) { ["model"]=> string(5) "store" ["model_name"]=> string(6) "店铺" ["name"]=> string(12) "店铺动态" ["act"]=> string(9) "store_sns" ["op"]=> string(5) "index" } ["store_info"]=> array(5) { ["model"]=> string(5) "store" ["model_name"]=> string(6) "店铺" ["name"]=> string(12) "店铺信息" ["act"]=> string(10) "store_info" ["op"]=> string(10) "store_info" } ["store_goods_class"]=> array(5) { ["model"]=> string(5) "store" ["model_name"]=> string(6) "店铺" ["name"]=> string(12) "店铺分类" ["act"]=> string(17) "store_goods_class" ["op"]=> string(5) "index" } ["store_brand"]=> array(5) { ["model"]=> string(5) "store" ["model_name"]=> string(6) "店铺" ["name"]=> string(12) "品牌申请" ["act"]=> string(11) "store_brand" ["op"]=> string(10) "brand_list" } ["store_transport"]=> array(5) { ["model"]=> string(9) "transport" ["model_name"]=> string(6) "物流" ["name"]=> string(12) "物流工具" ["act"]=> string(15) "store_transport" ["op"]=> string(5) "index" } ["store_free_freight"]=> array(5) { ["model"]=> string(9) "transport" ["model_name"]=> string(6) "物流" ["name"]=> string(15) "免运费额度" ["act"]=> string(18) "store_free_freight" ["op"]=> string(5) "index" } ["store_callcenter"]=> array(5) { ["model"]=> string(7) "consult" ["model_name"]=> string(6) "客服" ["name"]=> string(12) "客服设置" ["act"]=> string(16) "store_callcenter" ["op"]=> string(5) "index" } ["store_consult"]=> array(5) { ["model"]=> string(7) "consult" ["model_name"]=> string(6) "客服" ["name"]=> string(12) "咨询管理" ["act"]=> string(13) "store_consult" ["op"]=> string(12) "consult_list" } ["store_complain"]=> array(5) { ["model"]=> string(7) "consult" ["model_name"]=> string(6) "客服" ["name"]=> string(12) "投诉管理" ["act"]=> string(14) "store_complain" ["op"]=> string(4) "list" } ["store_refund"]=> array(5) { ["model"]=> string(7) "service" ["model_name"]=> string(6) "售后" ["name"]=> string(12) "退款记录" ["act"]=> string(12) "store_refund" ["op"]=> string(5) "index" } ["store_return"]=> array(5) { ["model"]=> string(7) "service" ["model_name"]=> string(6) "售后" ["name"]=> string(12) "退货记录" ["act"]=> string(12) "store_return" ["op"]=> string(5) "index" } ["store_bill"]=> array(5) { ["model"]=> string(6) "settle" ["model_name"]=> string(6) "结算" ["name"]=> string(12) "结算管理" ["act"]=> string(10) "store_bill" ["op"]=> string(5) "index" } ["statistics_flow"]=> array(5) { ["model"]=> string(10) "statistics" ["model_name"]=> string(6) "统计" ["name"]=> string(12) "流量统计" ["act"]=> string(15) "statistics_flow" ["op"]=> string(15) "flow_statistics" } ["statistics_sale"]=> array(5) { ["model"]=> string(10) "statistics" ["model_name"]=> string(6) "统计" ["name"]=> string(12) "销量统计" ["act"]=> string(15) "statistics_sale" ["op"]=> string(15) "sale_statistics" } ["statistics_probability"]=> array(5) { ["model"]=> string(10) "statistics" ["model_name"]=> string(6) "统计" ["name"]=> string(15) "购买率统计" ["act"]=> string(22) "statistics_probability" ["op"]=> string(22) "probability_statistics" } ["store_account"]=> array(5) { ["model"]=> string(7) "account" ["model_name"]=> string(6) "帐号" ["name"]=> string(12) "帐号列表" ["act"]=> string(13) "store_account" ["op"]=> string(12) "account_list" } ["store_account_group"]=> array(5) { ["model"]=> string(7) "account" ["model_name"]=> string(6) "帐号" ["name"]=> string(9) "帐号组" ["act"]=> string(19) "store_account_group" ["op"]=> string(10) "group_list" } ["seller_log"]=> array(5) { ["model"]=> string(7) "account" ["model_name"]=> string(6) "帐号" ["name"]=> string(12) "帐号日志" ["act"]=> string(10) "seller_log" ["op"]=> string(8) "log_list" } ["store_cost"]=> array(5) { ["model"]=> string(7) "account" ["model_name"]=> string(6) "帐号" ["name"]=> string(12) "店铺消费" ["act"]=> string(10) "store_cost" ["op"]=> string(9) "cost_list" } } ["store_province_id"]=> string(1) "4" ["store_area_id"]=> string(2) "92" ["store_county_id"]=> string(4) "1373" ["store_province"]=> string(9) "山西省" ["store_area"]=> string(9) "忻州市" ["store_county"]=> string(9) "五台县" ["store_pid"]=> string(4) "1373" ["store_pname"]=> string(9) "五台县" }
  评论这张
 
阅读(168)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017