You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, persist_order_address saves order addresses to a user's address book via save_in_address_book that also supports the Spree::Config.automatic_default_address config setting. Unfortunately, this does not work for billing_address because that is still being pulled from a column on the spree_users table whereas shipping_address is pulled from the spree_user_addresses where default is true. This means that even if your config is set to automatic_default_address = false it will still set the default billing address on every order save.
Describe the solution you'd like
Support Spree::UserAddress to work for both billing and shipping addresses. Maybe add columns for default_billing and default_shipping while leaving the default column.
Describe alternatives you've considered
Changing the setting of self.bill_address_id to respect Spree::Config.automatic_default_address
I agree that we should standardize this as the current behavior doesn't make much sense, and I think having a default_billing and default_shipping would work well here.
Is your feature request related to a problem? Please describe.
Currently,
persist_order_address
saves order addresses to a user's address book viasave_in_address_book
that also supports theSpree::Config.automatic_default_address
config setting. Unfortunately, this does not work forbilling_address
because that is still being pulled from a column on thespree_users
table whereasshipping_address
is pulled from thespree_user_addresses
wheredefault
istrue
. This means that even if your config is set toautomatic_default_address = false
it will still set the default billing address on every order save.Describe the solution you'd like
Support
Spree::UserAddress
to work for both billing and shipping addresses. Maybe add columns fordefault_billing
anddefault_shipping
while leaving thedefault
column.Describe alternatives you've considered
Changing the setting of
self.bill_address_id
to respectSpree::Config.automatic_default_address
Additional context
The text was updated successfully, but these errors were encountered: