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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Add notes for code and image.
Matthew Kennedy8d97845466b5
diff --git a/backend/app/views/spree/admin/menu_items/_form.html.erb b/backend/app/views/spree/admin/menu_items/_form.html.erbindex d9c0daed74..151b2014c1 100644--- a/backend/app/views/spree/admin/menu_items/_form.html.erb+++ b/backend/app/views/spree/admin/menu_items/_form.html.erb@@ -8,9 +8,6 @@<div class="card-body"><%= f.field_container :item_type, class: ['form-group'] do %><%= f.label :item_type, Spree.t('admin.navigation.item_type') %>- <span class="d-none" id="usingContainerInfo" data-show-info data-alert-message="<%= Spree.t('admin.navigation.menu_item_type_container_message') %>">- <%= svg_icon name: "info.svg", width: '15', height: '15' %>- </span><%= f.select(:item_type, @menu_item_types, {include_blank: false}) %><%= f.error_message_on :item_type %><% end %>@@ -20,7 +17,7 @@<%= f.text_field :code, class: 'form-control' %><%= f.error_message_on :code %><small class="form-text text-muted">- <%= Spree.t('admin.navigation.set_a_code') %>+ <%= raw Spree.t('admin.navigation.set_a_code') %></small><% end %>@@ -66,6 +63,9 @@<div id="<% unless @menu_item.icon.new_record? %>MenuItemImageButton<% end %>"><%= icon_field.file_field :attachment %></div>+ <small class="form-text text-muted">+ <%= raw Spree.t('admin.navigation.image_info') %>+ </small><% end %><%= f.field_container :icon_alt do %>@@ -106,6 +106,10 @@</div></div></div>++ <div id="usingContainerInfo" class="alert alert-info">+ <%= raw Spree.t('admin.navigation.menu_item_type_container_message') %>+ </div></div></div></div>diff --git a/core/config/locales/en.yml b/core/config/locales/en.ymlindex 0dd13627df..2fc0d88770 100644--- a/core/config/locales/en.yml+++ b/core/config/locales/en.yml@@ -598,10 +598,11 @@ en:no_menu_items: '<b>%{menu}</b> has no items. Click the <b>Add New Item</b> button to begin adding links to this menu.'nested_under_info: Quickly nest your Menu Item if you already know where it needs to be.item_type: Item Type+ image_info: '<b>NOTE:</b> You can attach an image to any menu item, but your image will only be displayed in the main menu when nested inside a container with the code <b>promo</b>.<br><br> For best results use images with a width of 540px and height of 350px.'open_link_in_new_window: Open this link in a new window- menu_item_type_message: "For more information about Menu Item Types, Nesting and using Codes, visit the documentation by- <a href='https://guides.spreecommerce.org/user/configuration/configuring_geography.html#zones' target='_blank' class='alert-link'>clicking here</a>."- menu_item_type_container_message: "Containers are menu items that do not link to a destination. Use containers to organize other menu items into groups.<br> <br> By nesting links inside a container with a set code, you can build menus with categories or promotions, as seen in the Spree Demo store."+ menu_item_type_container_message: "Containers are menu items that do not link to a destination. If you are building the Spree Main Menu+ create containers with the code: <b>category</b> or <b>promo</b>, and then nest your links inside these containers build out your menu.+ <br><br> For an indepth guide to building the main menu see the documenttation page <a href='https://guides.spreecommerce.org/user/navigation/building_the_main_menu.html' target='_blank' class='alert-link'>Building The Main Menu</a>"menus: Menusmenu_items: '%{menu_name} Items'public_details: Public Details@@ -612,7 +613,8 @@ en:seach_for_a_product: Search for a Productseach_for_a_taxon: Search for a Taxonsettings: Settings- set_a_code: Give your Menu Item a code, this is optional, but can be useful if you need to identify this menu item.+ set_a_code: "Adding a code is optional but can be useful if you need to identify this menu item. When building+ the Spree main menu use the code <b>category</b> or <b>promo</b> to create the containers that organize links and promotions appropriately. To learn more view the documentation by <a href='https://guides.spreecommerce.org/user/navigation/add_menu_items.html' target='_blank' class='alert-link'>clicking here</a>."type: Typeused_in: Used Inunique_code: Unique Code