Magento销售部>;订单>;装运历史记录>;默认情况下,在前端可见

Magento销售部>;订单>;装运历史记录>;默认情况下,在前端可见,magento,soap,Magento,Soap,客户很难看到他们下的订单的跟踪信息。我想这可能与默认设置“在前端可见”有关。我该怎么做呢?我认为它与此解决方案类似:但如果不是,我可以将其放入为导入订单跟踪号而进行的SOAP调用中 将订单跟踪信息导入系统的脚本的一部分: // Attempt to create the order, notify on failure try { $newShipmentId = $client->call($sess_id, 'sales_order_shipment.creat

客户很难看到他们下的订单的跟踪信息。我想这可能与默认设置“在前端可见”有关。我该怎么做呢?我认为它与此解决方案类似:但如果不是,我可以将其放入为导入订单跟踪号而进行的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++;

您正在查找此文件:

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


使其在默认情况下处于选中状态

仅供参考,我刚刚在输入标记中添加了“checked”

<input name="comment[is_visible_on_front]" type="checkbox" id="history_visible" value="1" checked />