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 do I to deactivate the check shipping address information validation
 
lfmparente
Jr. Member
 
Total Posts:  1
Joined:  2012-11-26
 

Hello all,

I have a problem with this method :

protected function _validate()
in the class Quote.php

a:5:{i:0;s:71:\\\"Please check shipping address information. Please enter the first name.\\\";i:1;s:1708:\\\"#0 /data/xxxxxxxxxx/app/code/core/Mage/Sales/Model/Service/Quote.php(298): Mage::throwException(\\\'Please check sh...\\\')
#1 /data/xxxxxxxxxx/app/code/core/Mage/Sales/Model/Service/Quote.php(222): Mage_Sales_Model_Service_Quote->_validate()
#2 /data/xxxxxxxxxx/app/code/core/Mage/Sales/Model/Service/Quote.php(238): Mage_Sales_Model_Service_Quote->submitNominalItems()
#3 /data/xxxxxxxxxx/app/code/local/Custom/Payement/controllers/Checkout/MultishippingController.php(440): Mage_Sales_Model_Service_Quote->submitAll()
#4 /data/xxxxxxxxxx/app/code/local/Custom/Payement/controllers/Checkout/MultishippingController.php(297): Custom_Payement_Checkout_MultishippingController->saveOrder(Object(Mage_Catalog_Model_Product), \\\'\\\', \\\'9782258094734\\\', \\\'17:45:27-7\\\')
#5 /data/xxxxxxxxxx/app/code/local/Custom/Payement/controllers/Checkout/MultishippingController.php(189): Custom_Payement_Checkout_MultishippingController->getLinkFromEP(\\\'\\\', Array, 7)
#6 /data/xxxxxxxxxx/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Custom_Payement_Checkout_MultishippingController->addressesPostAction()
#7 /data/xxxxxxxxxx/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(\\\'addressesPost\\\')
#8 /data/xxxxxxxxxx/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#9 /data/xxxxxxxxxx/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#10 /data/xxxxxxxxxx/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#11 /data/xxxxxxxxxx/index.php(88): Mage::run(\\\'\\\', \\\'store\\\')
#12 {main}\\\"
;s:3:\\\"url\\\";s:80:\\\"/myhome/index.php/retails/checkout/multishipping/addressesPost/\\\";s:11:\\\"script_name\\\";s:26:\\\"/myhome/index.php\\\";s:4:\\\"skin\\\";s:15:\\\"retails\\\";}

How I can deactivate the shipping validation, please?

because I have the following in my code and it\\\’s very ugly....

if (!$this->getQuote()->isVirtual()) {
            $address 
$this->getQuote()->getShippingAddress();
            
$addressValidation $address->validate();
            if (
$addressValidation !== true{
                
//Mage::throwException( Mage::helper(\\\'sales\\\')->__(\\\'Please check shipping address information. %s\\\', implode(\\\' \\\', $addressValidation)) );
            
}
            $method
$address->getShippingMethod();
            
$rate  $address->getShippingRateByCode($method);
            if (!
$this->getQuote()->isVirtual() && (!$method || !$rate)) {
                Mage
::throwException(Mage::helper(\\\'sales\\\')->__(\\\'Please specify a shipping method.\\\'));
            
}
        }

I should don\\\’t see the error page, because in most cases the transaction it\\\’s correctly done.

I appreciate some help.

Best regards.

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