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.

Add info on using the URL box for different use cases from external URL to making a tel: link.

Matthew Kennedy0a478d9b74c5
diff --git a/backend/app/views/spree/admin/menu_items/link_inputs/_url.html.erb b/backend/app/views/spree/admin/menu_items/link_inputs/_url.html.erb
index b4acde8e29..5ff45fe4e0 100644
--- a/backend/app/views/spree/admin/menu_items/link_inputs/_url.html.erb
+++ b/backend/app/views/spree/admin/menu_items/link_inputs/_url.html.erb
@@ -2,6 +2,9 @@
<%= f.label :destination, Spree.t(:url) %>
<%= f.text_field :destination, class: 'form-control' %>
<%= f.error_message_on :destination %>
+ <small class="form-text text-muted">
+ <%= raw Spree.t('admin.navigation.url_info') %>
+ </small>
<% end %>
<%= f.field_container :new_window do %>
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index 83bca3e1b8..bfe54d8bfd 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -604,6 +604,8 @@ en:
public_details: Public Details
unique_code_store_error: 'The code: %{code} is already used for Menu: %{menus}, make sure your unique code is unique within the store it is being used for.'
subtitle: Subtitle
+ url_info: 'The URL field can link to an external website using <b>https://example.com</b>, link to an otherwise unreachable internal path using <b>/policies/privacy</b>,
+ lanch an email client using <b>mailto:[email protected]</b> or used to create a clickable phone number with <b>tel:123456789</b>'
seach_for_a_product: Search for a Product
seach_for_a_taxon: Search for a Taxon
settings: Settings