开发者

Uncheck/Disable checked "Same as Billing Address" in magento 1.5

开发者 https://www.devze.com 2023-04-07 06:31 出处:网络
Basically, I\'ve been trying to remove the checked box when I go to the following. Sales > Order > View a completed order > Click Re-Orderand then I see the SHIPPING ADDRESS has a checkbox which is a

Basically, I've been trying to remove the checked box when I go to the following.

Sales > Order > View a completed order > Click Re-Order and then I see the SHIPPING ADDRESS has a checkbox which is already checked SAME AS BILLI开发者_JAVA百科NG ADDRESS. I want to uncheck the box and disable this function.

Please let me know how I can do this is the simplest way possible.

Magento Version 1.5.0.1


I found this and it worked perfect.

http://www.12live.de/de/blog/magento/magento-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);
0

精彩评论

暂无评论...
验证码 换一张
取 消