ImageVerifierCode 换一换
格式:DOCX , 页数:11 ,大小:19.44KB ,
资源ID:4760968      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-4760968.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(最土团购添加货到付款操作Word文档下载推荐.docx)为本站会员(b****2)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

最土团购添加货到付款操作Word文档下载推荐.docx

1、 allmoney$total_moneyserviceimg src=/static/css/i/other.gifbr/submitformbutton gotopay确认订单,货到付/form第2步:新建文件wtpay.php,存放在order目录下,代码如下:?phprequire_once(dirname(dirname(_FILE_) . /app.php);need_login();if (is_post() $order_id = abs(intval($_POSTorder_id); else if ( $_GETid = charge ) redirect( WEB_ROO

2、T. /credit/index.php $order_id = $id = abs(intval($_GETif(!$order_id | !($order = Table:Fetch(order, $order_id) redirect( WEB_ROOT. /index.phpif ( $orderuser_id != $login_user) redirect( WEB_ROOT . /team.php?id=$orderteam_id$team = Table:team, $order);team_state($team);if (is_post() & $_POSTpaytype

3、) $uarray = array( = pay_getservice($_POST) ); Table:UpdateCache(, $order_id, $uarray); $order = Table:, $order_id); $order = pay_getservice($_POSTif ( $_POST!= & $teamteam_typeseconds ($orderorigin$login_usermoney) option_yes(creditseconds) $need_money = ceil($order - $login_user Session:Set(error,

4、 秒杀项目仅可以使用余额付款,您的余额不足,还需要充值$need_money元才可以完成秒杀 redirect(WEB_ROOT . /credit/charge.php?money=$need_money/peruser buy countif ($_POST &per_number0) $now_count = Table:Count(, array( $login_user_id,state pay, ), quantity $leftnum = ($team - $now_count); if ($leftnum = 0) Session:, 您购买本单产品的数量已经达到上限,快去关注

5、一下其他产品吧! redirect( WEB_ROOT . id=$id/payed order ) if ( is_get() ) die(include template(order_pay_success); else redirect(WEB_ROOT . /order/pay.php?id=$order_id$total_money = moneyit($_POSTallmoney$service = $_POST;/* generate unique pay_id */if (!($pay_id = $orderpay_id) $randid = strtolower(Utilit

6、y:GenSecret(4, Utility:CHAR_WORD); $pay_id = go-$order-$order-$randid;, array( $pay_id, );/* noneed pay where goods soldout or end */if ($teamclose_timenotice本单产品团购已结束,现在不能进行付款now_number$teammaxnumber &0 ) 本单产品团购已卖光,现在不能进行付款/* end */* credit pay */echo $total_money;/echo /echo $order_id;,$order_id,a

7、rray( 0,unpay $total_money,pay_time time(), ); redirect(WEB_ROOT./order/index.php第3步:打开order/index.php,查找“$condition = ”,替换为“$condition = ( state ! )”第4步:打开order/paybank.php,查找“$payservice = array”,在数组里面添加元素other,最终结果数组里面的内容为“alipaytenpay,sdopaypaypalbillchinabankyeepaycmpay,”第5步:打开order/pay.php,查找“

8、else if ( $order ) ”,添加与其判断平行的一个else if判断句话,内容如下:/货到付款新添加的else if ($order &) $total_money = $order*1.01; if($order1000 | $order=1000) $total_money = $order+10; if($order1000) include template(order_pay第6步:对数据库操作,修改表order中的state字段,再添加一个值,sql语句如下:alter table order change state state enum(backpay) not

9、null default 第7步:打开/manage/misc/money.php,查找“$actions = array(storecardstorepaychargewithdrawcashrefund”修改为下面一句:$actions = array(查找“elseif ( = $s ) ”,在其上面添加下面一段代码:elseif ( = $s ) $condition = array( action, ); $count = Table:flow, $condition); $summary = Table:, $condition, list($pagesize, $offset,

10、$pagestring) = pagestring($count, 20); $flows = DB:LimitQuery(condition $condition,ORDER BY id DESCoffset $offset,size $pagesize, $user_ids = Utility:GetColumn($flows, $admin_ids = Utility:admin_id $users = Table:user, array_merge($user_ids,$admin_ids);manage_misc_money_backpay第8步:打开include/classes/

11、ZFlow.class.php,在else if ( = $action) return 现金充值 下面添加代码:货到付款第9步:打开include/function/current.php,查找“/manage/misc/money.php?s=store线下充值,”在其下面一行添加s=backpay第10步:复制模板manage_misc_money_store.html,将复制后的模板更名为manage_misc_money_backpay.html,然后打开,把里面要的文字“线下充值”替换为“货到付款”,并将后面的“用户提现”替换为“线下充值”将“$mcurrent_misc()”替换

12、为“-if $onea href=/ajax/manage.php?action=orderview&id=$oneajaxlink详情-elseif $oneaction=orderbackpay& ask=确认本订单为现金付款?现金/td”替换为“action=ordercash 确认本订单已经收到货并且付款么?第12步:打开ajax/manage.php,找到“else if ( ordercash = $action ) ”在其下面的“”后面添加下面一段程序代码:orderbackpay = $action ) need_auth(, $id); if (! )货到付款失败错

13、误代码1 json(null, refresh /update order );FetchForce( $user_id = $order $money = floatval($order if ( $money = 0 | $user_id 0) ?income :expense $action = ($moneysorce $money = abs($money); /* end swtich */ $u = array( $user_id, $money,direction $direction, $action,detail_idcreate_time ); DB:Insert(, $

14、u); ZTeam:BuyOne($order);货到付款成功,购买用户:$useremail json(null, 第13步:打开ajax/manage.php,查找“font color=red已付款,”这里有两处,都在其下面添加一行代码货到付款(未付) 0修改为: state != 第15步:打开模板order_index.html,把“-elseif $teams$one0-已过期未付款”修改为:td align=center第16步:检查调试程序执行。用户通过前台来下订单,提交订单,选择付款方式为货到付款,提交以后,用户中心我的订单状态显示为“货到付款”当用快递公司代收或者其它形式收到货款以后,在后台管理订单当期订单或者未付订单会显示出来详情和货到付款,点击“货到付款”,会提示二次确定,确定以后,订单就会变成已经付款的订单。在后台管理首页财务,点击货到付款,可以看到此笔收入。在前台用户中心的地方,我个订单就变成了已付款,账户信息帐户余额会显示个人账户的收支状况。因为时间有限,此修改当中可能存在部分的不完整,但是功能方面没有问题。幸运编号生成正确,积分生成正确,但是提示是购买生成的积分而没有提示是货到付款生成的积分

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2