客户无法查看他们所下订单的跟踪信息。我认为这可能与默认设置“在前端可见”有关。我该怎么做呢?我认为它类似于此解决方案: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++;