dqpc1845 2016-02-16 13:35
浏览 36
已采纳

如何在Magento 1.9.X的Header Mini Cart中显示运费?

I want to display Shipping Charge in Header Mini Cart same as cart page. There is only display Grand Total.

Please suggest me how to get shipping charge in header mini cart.

  • 写回答

1条回答 默认 最新

  • dqb77047 2016-02-16 13:43
    关注

    You can add this code in your app/design/frontend/package_name/Theme_name/template/checkout/cart/minicart.phtml

    <?php if(!$_cartQty)
         $_cartQty = 0;
         $_shipping = $this->helper('checkout')->formatPrice
         (Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount());
    ?>
    

    and print this price as

     <?php echo $_shipping ?>
    

    where ever you want to get price.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?