Internetagentur

Magento - Create order in backend: Set default value of delivery address checkbox "Same as billing" to unchecked


Magento (1.5.1.0) - Create order in backend: Set default value of delivery address checkbox "Same as billing" to unchecked

If you create an order in the backend by default the delivery method checkbox "Same as billing" is checked. If the customer has different billing and shipping address this is problematic. In the dop down the shipping address is shown. But due to the checkbox the shown shipping address is ignored and the billing address wil be used for delivery. If you want the checkbox to be unchecked by default the following modification is needed. Recommended is to copy the file from the core to the local code pool and modifiy it there. The file in question is core/Mage/Sales/Model/Quote/adress.php. You need to change line 124 to:

 $this->setSameAsBilling(0);

 

Oops, an error occurred! Code: 201907270629483fd81a59