找到order/index.php
$prohibitrefund = false; 这一行
上面的sql语句改为
$goods = pdo_fetchall("select og.id,og.single_refundstate,og.sendtime,og.goodsid,og.price,g.title,og.title as gtitle,g.thumb,g.status, g.cannotrefund, og.total,g.credit,og.optionid, og.optionname as optiontitle,g.isverify,g.storeids,og.seckill,g.isfullback, og.seckill_taskid{$diyformfields}{$condition1},og.prohibitrefund from " . tablename('ewei_shop_order_goods') . " og " . " left join " . tablename('ewei_shop_goods') . " g on g.id=og.goodsid " . " where $scondition and og.uniacid=:uniacid ", $param);
最下面
include($this->template());上面位置
添加//是否可以退款 $tradeset = m('common')->getSysset('trade'); //是否显示单品退换 (不是套餐 && 不是代付 && 不是全返 && 开启了单品退换开关) || 订单维权状态==单品维权 if((empty($order['ispackage']) && empty($ispeerpay) && empty($isfullback) && !empty($tradeset['single_refund'])) || $order['refundstate']==3){ $is_single_refund=true; }else{ $is_single_refund=false; }