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.

图片转代码服务由CSDN问答提供 功能建议

我想在Header Mini Cart中显示与购物车页面相同的运费。 只显示Grand Total。< / p>

请建议我如何在标头迷你车中收取运费。

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

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.

    打赏 评论

相关推荐 更多相似问题