Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

More hints on Store form

Damian Legawiec2fb10d316db9
diff --git a/backend/app/views/spree/admin/stores/_form.html.erb b/backend/app/views/spree/admin/stores/_form.html.erb
index 8fb8788bd8..bfc707b049 100644
--- a/backend/app/views/spree/admin/stores/_form.html.erb
+++ b/backend/app/views/spree/admin/stores/_form.html.erb
@@ -81,6 +81,9 @@
<%= f.label :seo_robots, Spree.t(:seo_robots) %>
<%= f.text_field :seo_robots, class: 'form-control' %>
<%= f.error_message_on :seo_robots %>
+ <small class="form-text text-muted">
+ <%= raw(Spree.t('store_form.seo_robots')) %>
+ </small>
<% end %>
</div>
</div>
@@ -96,18 +99,27 @@
<%= f.label :mail_from_address, raw(Spree.t(:mail_from_address) + required_span_tag) %>
<%= f.text_field :mail_from_address, class: 'form-control', required: true %>
<%= f.error_message_on :mail_from_address %>
+ <small class="form-text text-muted">
+ <%= Spree.t('store_form.mail_from_address_help') %>
+ </small>
<% end %>
<%= f.field_container :customer_support_email, class: ['form-group'] do %>
<%= f.label :customer_support_email, Spree.t(:customer_support_email) %>
<%= f.text_field :customer_support_email, class: 'form-control' %>
<%= f.error_message_on :customer_support_email %>
+ <small class="form-text text-muted">
+ <%= Spree.t('store_form.customer_support_email_help') %>
+ </small>
<% end %>
<%= f.field_container :new_order_notifications_email, class: ['form-group'] do %>
<%= f.label :new_order_notifications_email, Spree.t(:new_order_notifications_email) %>
<%= f.text_field :new_order_notifications_email, class: 'form-control' %>
<%= f.error_message_on :new_order_notifications_email %>
+ <small class="form-text text-muted">
+ <%= Spree.t('store_form.new_order_notifications_email_help') %>
+ </small>
<% end %>
</div>
</div>
@@ -143,7 +155,7 @@
<%= f.error_message_on :default_locale %>
<% unless defined?(SpreeI18n) %>
<small class="form-text text-muted">
- Install <a href="https://github.com/spree-contrib/spree_i18n">Spree I18n extension</a> to add more languages.
+ <%= raw(Spree.t('store_form.languages_help')) %>
</small>
<% end %>
<% end %>
@@ -151,6 +163,9 @@
<%= f.label :default_country_id, Spree.t('i18n.default_country') %>
<%= f.select :default_country_id, options_from_collection_for_select(@countries, :id, :name, @store.default_country_id || Spree::Config[:default_country_id]), {}, { class: 'select2' } %>
<%= f.error_message_on :default_country_id %>
+ <small class="form-text text-muted">
+ <%= Spree.t('store_form.default_country_help') %>
+ </small>
<% end %>
</div>
</div>
@@ -162,6 +177,10 @@
</h1>
</div>
<div class="card-body">
+ <div class="alert alert-warning col-12">
+ <%= Spree.t('store_form.social_help') %>
+ </div>
+
<%= f.field_container :facebook, class: ['form-group'] do %>
<%= f.label :facebook, Spree.t(:facebook) %>
<div class="input-group mb-3">
@@ -198,10 +217,14 @@
<div class="card mb-4">
<div class="card-header">
<h1 class="card-title mb-0 h5">
- <%= Spree.t(:footer_info) %>
+ <%= Spree.t(:footer) %>
</h1>
</div>
<div class="card-body">
+ <div class="alert alert-warning col-12">
+ <%= Spree.t('store_form.footer_help') %>
+ </div>
+
<%= f.field_container :description, class: ['form-group'] do %>
<%= f.label :description, Spree.t(:description) %>
<%= f.text_area :description, class: 'form-control' %>
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index fcb199e12a..ed5e51be40 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -901,7 +901,7 @@ en:
flat_rate_per_order: Flat Rate
flexible_rate: Flexible Rate
follow_us: Follow us
- footer_info: Footer info
+ footer: Footer
forgot_password: Forgot password?
free: Free
free_shipping: Free Shipping
@@ -1658,8 +1658,16 @@ en:
unable_to_delete: Unable to delete store.
store_form:
code_help: "Store unique identifier, which is an abbreviated version of the store’s name (used as the layout directory name, and also helpful for separating templates by store)"
- checkout_zone_help: "Selecting a Zone will limit customers on Checkout to Addresses in Countries or States in that Zone.
+ checkout_zone_help: "Selecting a Zone will limit customers on Checkout to Addresses in Countries or States in that Zone.
For more information <a href='https://guides.spreecommerce.org/user/configuration/configuring_geography.html#zones' target='_blank' class='alert-link'>please see documentation</a>"
+ languages_help: "Install <a href='https://github.com/spree-contrib/spree_i18n target='_blank' class='alert-link'>Spree I18n extension</a> to add more languages"
+ social_help: "If you want to link to your social accounts in the footer part of your website please fill below fields"
+ default_country_help: "This is the Country that will be pre-selected on the Checkout Address form"
+ footer_help: "This content is visible in the footer section of your Store"
+ mail_from_address_help: "This is the email which will be the sender of all your Store emails (Order Confirmation, Shipment notification etc)"
+ customer_support_email_help: "This email is visible to your Store visitors in the Footer section"
+ new_order_notifications_email_help: "If you want to receive an email notification every time someone places an Order please provide an email address for that notification to be sent to"
+ seo_robots: "Please check <a href='https://developers.google.com/search/reference/robots_meta_tag' target='_blank'>this page for more help</a>"
store_set_default_button: Set as default
stores: Stores
store_credit_name: Store Credit