Hi, there is no way to override: preference :defau...
# support
w
Hi, there is no way to override: preference :default_country_iso, :string, default: ‘US’ in Spree/app_configuration to me this preference should configurable in initialzer/spree.
until now i modified CheckoutController#before_adress after the Spree::Address.build_default
Copy code
@order.bill_address.country_id = Spree::Country.find_by!(iso: "IT").id
j
Im sure this can be overridden. What object is this preference on?
w
How are you trying to override it?
w
on developer guide: Do not extend application-wide preferences We do not support changing or extending the
Spree::AppConfiguration
preferences.
j
You've misunderstood what that means, so we should make that wording more clear. You can set those preferences (in your
config/initializers/spree.rb
), but you shouldn't extend those configuration classes.
w
sorry for misunderstanding, i should try…