Magento销售>订单>发货历史>默认情况下在前端可见

时间:2013-02-02 18:55:50

标签: magento soap

shipment

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

1 个答案:

答案 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;到输入标签。