mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-24 05:38:52 +00:00
fix default country and state selection.
This commit is contained in:
@@ -10,7 +10,7 @@ module Spree
|
||||
after_initialize :initialize_country
|
||||
|
||||
def initialize_country
|
||||
# self.country = Spree::Country.find_by_id(Spree::Config[:default_country_id])
|
||||
self.country = Spree::Country.find_by_id(Spree::Config[:default_country_id])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,4 +13,5 @@ Spree.config do |config|
|
||||
# config.shipping_instructions = true
|
||||
config.checkout_zone = 'Australia'
|
||||
config.address_requires_state = true
|
||||
config.default_country_id = Spree::Country.find_by_name('Australia').id
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user