客户无法查看所下订单的跟踪信息。我想也许它与“在前端可见”默认情况有关。我该怎么做呢?我认为它类似于这个解决方案: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++;
答案 0 :(得分: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 />
默认选中它。
仅供参考,我刚刚添加了#34;已检查过&#34;到输入标签。