I am trying to get the shipping price from the quote on the cart page for the entire order.
I have tried multiple things including:
Mage::getModel("checkout/session")->getQuote()->getShippingMethod()->getPrice();
$rates = Mage::getModel("checkout/session")->getQuote()->getShippingAddress()->getAllShippingRates();
foreach($rates as $rate){
$rate->getPrice();
}
What can I do to get the shipping price in the Magento cart?
Best Answer
This will do the trick. From your question, I assume that the customer has already selected their desired shipping method.
In fact, there are a number of methods available to you. Such as:
If you simply want to get all available shipping rates into an array: