mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
move checks and links in sidebars
This commit is contained in:
@@ -11,11 +11,16 @@ require 'spree/product_filters'
|
||||
|
||||
Spree.config do |config|
|
||||
config.shipping_instructions = true
|
||||
config.checkout_zone = 'Australia'
|
||||
config.checkout_zone = ENV["CHECKOUT_ZONE"]
|
||||
config.address_requires_state = true
|
||||
|
||||
# 12 should be Australia. Hardcoded for CI (Jenkins), where countries are not pre-loaded.
|
||||
config.default_country_id = 12
|
||||
if Rails.env.test? or Rails.env.development?
|
||||
config.default_country_id = 12
|
||||
else
|
||||
country = Spree::Country.find_by_name(ENV["DEFAULT_COUNTRY"])
|
||||
config.default_country_id = country.id if country.present?
|
||||
end
|
||||
|
||||
# -- spree_paypal_express
|
||||
# Auto-capture payments. Without this option, payments must be manually captured in the paypal interface.
|
||||
@@ -23,11 +28,6 @@ Spree.config do |config|
|
||||
#config.override_actionmailer_config = false
|
||||
end
|
||||
|
||||
# TODO Work out why this is necessary
|
||||
# Seems like classes within OFN module become 'uninitialized' when server reloads
|
||||
# unless the empty module is explicity 'registered' here. Something to do with autoloading?
|
||||
module OpenFoodNetwork
|
||||
end
|
||||
|
||||
# Add calculators category for enterprise fees
|
||||
module Spree
|
||||
@@ -43,7 +43,7 @@ module Spree
|
||||
end
|
||||
|
||||
# Forcing spree to always allow SSL connections
|
||||
# Since we are using config.force_ssl = true
|
||||
# Since we are using config.force_ssl = true
|
||||
# Without this we get a redirect loop: see https://groups.google.com/forum/#!topic/spree-user/NwpqGxJ4klk
|
||||
SslRequirement.module_eval do
|
||||
protected
|
||||
|
||||
Reference in New Issue
Block a user