在ecshop订单列表中显示收货人姓名、支付方式的方法

1:includes\lib_transaction.php中。
function get_user_orders()函数SQL语句中增加
$sql = "SELECT order_id, order_sn, order_status, shipping_status,consignee,pay_name, pay_status, add_time, " .
"(goods_amount + shipping_fee + insure_fee + pay_fee + pack_fee + card_fee + tax - discount) AS total_fee ".
" FROM " .$GLOBALS['ecs']->table('order_info') .
" WHERE user_id = '$user_id' ORDER BY add_time DESC";
2:数组中
'consignee'       => $row['consignee'],
'pay_name'       => $row['pay_name'],
3:在ECSHOP模板文件user_transaction.dwt的order_list中

{$item.order_sn}
{$item.order_time}
{$item.consignee}
{$item.pay_name}
{$item.total_fee}
{$item.order_status}
{$item.handler}

(0)

相关推荐