[英]Magento 1.9.x: How to add an extra fee to order while adding item to cart programmatically?
[英]How to display Shipping Charge in Header Mini Cart in Magento 1.9.X?
我想在與購物車頁面相同的抬頭迷你購物車中顯示運費。 僅顯示總計。
請建議我如何獲得抬頭迷你購物車中的運費。
您可以在您的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());
?>
並將價格打印為
<?php echo $_shipping ?>
您想在哪里獲得價格。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.