Closed (fixed)
Project:
Commerce Shipping
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 May 2012 at 20:33 UTC
Updated:
19 Oct 2012 at 17:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
artkon commentedComment #2
artkon commentedSorry, I committed file mode changes, here is a good one,
Comment #3
artkon commentedHere is a final one, with some comment changes.
Comment #4
googletorp commentedGood work on the patch, however, the copy billing address functionality is on it's way out of commerce shipping and on it's way into commerce core. So for now will postpone and probably won't do anything if things go as planned.
See #1410022: Improve copy address functionality - create a more generic solution
Comment #5
artkon commentedUpdated patch: To prevent a PHP notice I inserted an if (!empty($profile_id)) on line 1050 of commerce_shipping.module
Fixed Notice: Undefined variable: profile_id in commerce_shipping_commerce_customer_profile_presave() (line 1050 of /mnt/apci/pdupstore/www/profiles/apci_store/modules/contrib/commerce_shipping/commerce_shipping.module).
Comment #6
artkon commentedPrevious patch was not applying cleanly, attached is a working patch.
Comment #7
rszrama commentedClosing this now that the core patch has been committed.
Comment #8
nadavoid commentedUpdated patch #6 adds condition so that it applies only during checkout. Previously, it was taking effect when editing an existing shipping address.
Also added a @todo in our local site to upgrade to the latest version of commerce, so we won't need this patch at all.
Comment #9
nadavoid commentedUpdated patch to allow a duplicate to be made if using an address that was used on a previous order. This is done by checking $profile->revision_id.