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++;