【问题标题】:Magento Track shipment link on order view page not showing订单视图页面上的 Magento Track 发货链接未显示
【发布时间】:2013-02-04 21:10:02
【问题描述】:

我无法在管理端显示链接!我的客户对它的丢失感到非常恼火。有什么想法吗?

文件adminhtml/default/default/template/sales/order/view/tab/info.phtml代码如下:

 <?php  if ($_order->getTracksCollection()->count()) : ?>
                    <a href="#" id="linkId" onclick="popWin('<?php echo $this->helper('shipping')->getTrackingPopupUrlBySalesModel($_order) ?>','trackorder','width=800,height=600,resizable=yes,scrollbars=yes')" title="<?php echo $this->__('Track Order') ?>"><?php echo $this->__('Track Order') ?></a>
                    <br/>
                    <?php endif; ?>

adminhtml/default/your_template_name/template/sales/order/view/tab/info.phtml‌​也有相同的代码。

【问题讨论】:

  • 您使用的是模板吗?这可能位于此处:adminhtml/default/**your_template_name**/template/sales/order/view/tab/info.phtml
  • 我在模板目录和默认目录中都有相同的文件——因为我在搞砸它。
  • 我仍然坚持这个!

标签: php magento magento-1.7


【解决方案1】:

我发现以前由另一个程序员编写的程序没有将跟踪号从仓库上传到管理员中的正确位置。它将它添加到 cmets 但未添加到 Shipment 部分。一旦我在程序中修复了一些代码以添加跟踪号,所有相关问题都得到了解决。如果您需要帮助,请随时与我联系。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-03-27
    • 2017-04-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多