2013-02-02 49 views
1

shipmentMagento的銷售>訂單>託運歷史>在前端可見默認

客戶都無法看到他們下訂單的跟蹤信息。我想這可能與「在前端顯示」默認設置有關。我會如何去做這件事?我在想它與此解決方案類似: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

您正在尋找此文件:

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 /> 

默認情況下已檢查它。

僅供參考,我剛剛添加了「檢查」到輸入標籤。