Reputation: 581
I want to hide or remove the Shipping Method from cart page.
The reason to hide is we are giving free delivery on order above 15 pound.
but since magneto save the users shipping method in session it show the shipping and handling charge as 3 pound even though the order amount is greater than 15 pound (should be Free delivery).
Or way to unset shipping method from session.
Please refer the image.
Upvotes: 0
Views: 2752
Reputation: 581
I finally got the solution.
I have unset the current shipping method, using the following code snippets.
$quote = Mage::helper('checkout/cart')->getCart()->getQuote();
$shippingMethod = $quote->getShippingAddress()->getShippingMethod();
if($shippingMethod){
$quote->getShippingAddress()->setShippingMethod(null); //setting method to null
$quote->save();
}
Upvotes: 2