-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Customer Support Email Address (#10035)
- Loading branch information
1 parent
75d9646
commit 42c6d5a
Showing
10 changed files
with
65 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# Possibly already created by a migration. | ||
unless Spree::Store.default.persisted? | ||
Spree::Store.new do |s| | ||
s.name = 'Spree Demo Site' | ||
s.code = 'spree' | ||
s.url = Rails.application.routes.default_url_options[:host] || 'demo.spreecommerce.org' | ||
s.mail_from_address = 'spree@example.com' | ||
s.default_currency = 'USD' | ||
s.seo_title = 'Spree Commerce Demo Shop' | ||
s.meta_description = 'This is the new Spree UX DEMO | OVERVIEW: http://bit.ly/new-spree-ux | DOCS: http://bit.ly/spree-ux-customization-docs | CONTACT: https://spreecommerce.org/contact/' | ||
s.facebook = 'spreecommerce' | ||
s.twitter = 'spreecommerce' | ||
s.instagram = 'spreecommerce' | ||
s.name = 'Spree Demo Site' | ||
s.code = 'spree' | ||
s.url = Rails.application.routes.default_url_options[:host] || 'demo.spreecommerce.org' | ||
s.mail_from_address = 'no-reply@example.com' | ||
s.customer_support_email = 'support@example.com' | ||
s.default_currency = 'USD' | ||
s.seo_title = 'Spree Commerce Demo Shop' | ||
s.meta_description = 'This is the new Spree UX DEMO | OVERVIEW: http://bit.ly/new-spree-ux | DOCS: http://bit.ly/spree-ux-customization-docs | CONTACT: https://spreecommerce.org/contact/' | ||
s.facebook = 'spreecommerce' | ||
s.twitter = 'spreecommerce' | ||
s.instagram = 'spreecommerce' | ||
end.save! | ||
end |
7 changes: 7 additions & 0 deletions
7
core/db/migrate/20200310145140_add_customer_support_email_to_spree_store.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class AddCustomerSupportEmailToSpreeStore < ActiveRecord::Migration[6.0] | ||
def change | ||
unless column_exists?(:spree_stores, :customer_support_email) | ||
add_column :spree_stores, :customer_support_email, :string | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FactoryBot.define do | ||
factory :store, class: Spree::Store do | ||
sequence(:code) { |i| "spree_#{i}" } | ||
name { 'Spree Test Store' } | ||
url { 'www.example.com' } | ||
mail_from_address { 'spree@example.org' } | ||
default_currency { 'USD' } | ||
facebook { 'spreecommerce' } | ||
twitter { 'spreecommerce' } | ||
instagram { 'spreecommerce' } | ||
sequence(:code) { |i| "spree_#{i}" } | ||
name { 'Spree Test Store' } | ||
url { 'www.example.com' } | ||
mail_from_address { 'no-reply@example.com' } | ||
customer_support_email { 'support@example.com' } | ||
default_currency { 'USD' } | ||
facebook { 'spreecommerce' } | ||
twitter { 'spreecommerce' } | ||
instagram { 'spreecommerce' } | ||
end | ||
end |