ECTouch显示手机订单

By:Anna Scaret
1 min read2021-09-22 10:44:58

很多移动商城下单后成功后都会显示是否为手机订单,这对我们分析pc和移动的流量情况很有帮助,现在很多php建站的ECShop程序都用上了ECTouch手机版商城,而ECTouch程序默认是没有这个功能的,我们需要通过修改代码才能完成,说干就干,于是开始在各种网站上找资料,终于学会了,现在高速度 主机小编将把修改ECTouch显示手机订单的操作步骤给大家分享一下,此教程仅适用于安装了ECTouch的ECShop程序。1、修改order.php文件用ftp工具连接到php空间,在网站根目录的admin路径下找到该文件,为了安全起见,先对操作的文件做个备份,备份的方式是在文件名称后面加上.bak,如order.php.bak。用文本编辑器打开此文件,在第5042行找到这句代码:
$sql = "SELECT o.order_id, o.order_sn, o.add_time, o.order_status, o.shipping_status, o.order_amount, o.money_paid, o.mobile_order," .增加“”o.mobile_order,”,修改后是:
$sql = "SELECT o.order_id, o.order_sn, o.add_time, o.order_status, o.shipping_status, o.order_amount, o.money_paid, o.mobile_order," .2、订单列表中添加在admin/templates/路径下找到order_list.htm,如图所示,

<td align="right" valign="top" nowrap="nowrap">{$order.formated_total_fee}</td>在标签内添加一句代码,修改后是:
<td align="right" valign="top" nowrap="nowrap">{$order.formated_total_fee}<br>{if $order.mobile_order neq 0}<img src="images/mobile_order.png" border="0">{/if}</td>3、订单详情中添加在admin/templates路径下找到order_info.htm,打开此文件在第107行中找到
<td> {$order.referer} </td>将这句代码改为:
<td>{if $order.mobile_order neq 0}<img src="images/mobile_order.png" border="0">{else}{$order.referer}{/if}</td>,操作如图所示。



本文地址:https://www.gaosudu.com/ectouch/26122.html