I want add 2 lines code into but I want do this from my Extension How can I do this job ?
Don't want to add code to core file and then insert it into local folder
Is this possible add directly into my extension ?
I want add 2 lines below into
/code/core/Mage/Checkout/controllers/CartController.php
in the public function estimatePostAction()
under the $region = (string) $this->getRequest()->getParam('region');
Code is :
$cityDiff = $this->getRequest()->getParam('city');
Mage::getSingleton('core/session')->setEstimatedCity($cityDiff);