1

运输

客户无法查看他们所下订单的跟踪信息。我认为这可能与默认设置“在前端可见”有关。我该怎么做呢?我认为它类似于此解决方案:Magento - Email Shipment = Default但如果不是,我可以将其放入为导入订单跟踪号而进行的 SOAP 调用中。

将订单跟踪信息导入系统的部分脚本:

// Attempt to create the order, notify on failure
            try { $newShipmentId = $client->call($sess_id, 'sales_order_shipment.create', array($ShippedOrderId, array(), $comment, true, false, $shippedby, $shipname, $fields[4])); }
            catch (Exception $e) { echo 'Shipment creation failed on order '. $ShippedOrderId . ': ', $e->getMessage(); }
            // Add comment to order with all the info
            $client->call($sess_id, 'sales_order.addComment', array($ShippedOrderId, 'complete',  $comment,  false));
            $client->call($sess_id, 'sales_order_shipment.addTrack', array($ShippedOrderId, $shippedby, $shipname, $fields[4]));
            $mail_content .= $line . "\n";
            $importcount++;
4

1 回答 1

0

您正在寻找此文件:

app/design/adminhtml/default/default/template/sales/order/comments/view.phtml

只需更换

<input name="comment[is_visible_on_front]" type="checkbox" id="history_visible" value="1" />

<input name="comment[is_visible_on_front]" type="checkbox" id="history_visible" value="1" checked />

默认情况下检查它。

仅供参考,我刚刚在输入标签中添加了“已检查”。

于 2013-02-02T19:05:43.423 回答