Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to get shipping address in OnepageController as well as shipping module
 
unnikrishnanes
Member
 
Total Posts:  38
Joined:  2010-04-26
 

The problem is to get the shipping address:

I tried to get the shipping address from the $data ($data = $this->getRequest()->getPost(’shipping’, array());) in saveShippingAction function in OnePageController.php. 

This is working if am checking out as a guest but not if I am already logged in . how can I get the shipping address in both the case.?

My another problem is I am not able to get the shipping address in the shipping module which I created( class MagentoBook_ShippingModule_Model_Carrier_BareBonesMethod ). after debugging I found that my shipping module is executing before executing the funtion ‘saveShippingAction’ in OnePageController. In this case how can I get the shipping address in my newly created shipping module ? because I need to send a request to a shipping gateway(Fraktjakt) inorder to get the available shipping carriers. So I need shipping address, origin address to make a request.

Any kind of help will greatly appreaciated

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top