I have my first shop running and try to create my ...
# support
o
I have my first shop running and try to create my first product but it says out of stock.. so im trying to create a location but it says "You must create a default country before creating a stock location." How can i set a default Country? I found this for spree.rb but creates errors.. any hint? Spree.config do |config| country = Spree::Country.find_by_name('Austria') config.default_country_id = country.id if country.present? end I also found solidus/core/lib/spree/app_configuration.rb file with preference :default_country_iso, :string, default: 'US' but how can i change this value.. i dont have this lib/spree folder in my project at all? im so confused
k
Hello! You can set these configurations in a file that is installed by solidus at:
config/initializers/spree.rb
. Do you have it?
o
i got it working by seeding .. not sure why spree.rb only gives errors with these settings but fine for me