mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
don't override existing addresses on order with AddressFinder
This commit is contained in:
@@ -35,8 +35,8 @@ module CheckoutCallbacks
|
||||
def load_saved_addresses
|
||||
finder = OpenFoodNetwork::AddressFinder.new(@order.email, @order.customer, spree_current_user)
|
||||
|
||||
@order.bill_address = finder.bill_address
|
||||
@order.ship_address = finder.ship_address
|
||||
@order.bill_address ||= finder.bill_address
|
||||
@order.ship_address ||= finder.ship_address
|
||||
end
|
||||
|
||||
def load_shipping_methods
|
||||
|
||||
Reference in New Issue
Block a user