如何将跟踪号添加到用户收到的邮件中?

时间:2014-05-15 12:52:09

标签: drupal-6 ubercart

我尝试过编辑uc_order模块

function uc_order_token_list($type = 'all') {
  ...
  $tokens['order']['order-tracking-number'] = t('The tracking number of the order.');
  ...
}

function uc_order_token_values($type, $object = NULL) {
  ...
  $values['order-tracking-number'] = uc_tracking_get_order_tracking_numbers($order);
}

电子邮件:

[order-first-name] [order-last-name], Your order number [order-link] at [store-name] has been updated. Order status: [order-status] Order tracking number: [order-tracking-number] Order comment: [order-last-comment] Browse to the following page to login to your account and view your order details: [site-login] Thanks again, [store-name] [site-slogan]

但是在用户收到的邮件中,未列出跟踪号。

1 个答案:

答案 0 :(得分:0)

实际上这确实有用,我只是没有一个实际的订单号码,因为它是一个测试订单,它实际上从未发货过。