body_end_partials
.
Let’s say you want to add a new footer to the admin dashboard. You’ll need to generate a template in your application:
config/initializers/spree.rb
body_end_partials
._
prefix.<head>
head_partials
Injects code into the <head>
tag<body>
body_start_partials
Injects code into the <body>
tag, before the main content</body>
body_end_partials
Injects code into the <body>
tag, after the main contentAnalytics
dashboard_analytics_partials
Sidebar
Orders Actions
orders_actions_partials
Injects code into the page actions area (top right of the page) for the orders list page. This is useful for adding custom buttons, export options, or other actions.Orders Header
orders_header_partials
Injects code between the page header and the main content area for the orders list page. This is useful for adding notifications, alerts, or additional information.Orders Filters
orders_filters_partials
f
variable, which is the form builder for the filters, eg.q_number_cont
- The name of the filter field. For filtering we’re using ransack gem, so the name of the filter field is the name of the attribute we’re filtering by. Learn more about ransack search syntax.form-control
- A bootstrap class for styling the input field.data: { filters_target: :input }
- Needed for the Stimulus Filters controller to work.Order Page Dropdown
order_page_dropdown_partials
order
variable.To add an additional dropdown item, you can use the following code:dropdown-item
is a bootstrap class for styling the dropdown itemtarget: "_blank"
is used to open the link in a new tabOrder Page Header
order_page_header_partials
...
button, you can use the following code:...
button, you can use the following code:local_time
is a helper for displaying the time in the user’s timezone in a human readable format (based on the browser’s timezone).Order Page Body
order_page_body_partials
order
variable.To add a new section to the order page, you can use the following code:Order Page Sidebar
Customers Actions
users_actions_partials
Injects code into the page actions area (top right of the page) for the customers list page. This is useful for adding custom buttons, export options, or other actions.Customers Header
users_header_partials
Injects code between the page header and the main content area for the customers list page. This is useful for adding notifications, alerts, or additional information.Customers Filters
users_filters_partials
f
variable, which is the form builder for the filters.data: { filters_target: :input }
for proper integration with the Stimulus Filters controllerStock Items Actions
stock_items_actions_partials
Injects code into the page actions area for the stock items list page.Stock Items Header
stock_items_header_partials
Injects code between the page header and the main content area for the stock items list page.Stock Items Filters
stock_items_filters_partials
Admin Users Actions
admin_users_actions_partials
Injects code into the page actions area for the admin users list page.Admin Users Header
admin_users_header_partials
Injects code between the page header and the main content area for the admin users list page.Classifications Actions
classifications_actions_partials
Injects code into the page actions area for the classifications list page.Classifications Header
classifications_header_partials
Injects code between the page header and the main content area for the classifications list page.Coupon Codes Actions
coupon_codes_actions_partials
Injects code into the page actions area for the coupon codes list page.Coupon Codes Header
coupon_codes_header_partials
Injects code between the page header and the main content area for the coupon codes list page.Custom Domains Actions
custom_domains_actions_partials
Injects code into the page actions area for the custom domains list page.Custom Domains Header
custom_domains_header_partials
Injects code between the page header and the main content area for the custom domains list page.Customer Returns Actions
customer_returns_actions_partials
Injects code into the page actions area for the customer returns list page.Customer Returns Header
customer_returns_header_partials
Injects code between the page header and the main content area for the customer returns list page.Customer Returns Filters
customer_returns_filters_partials
Digital Assets Actions
digital_assets_actions_partials
Injects code into the page actions area for the digital assets list page.Digital Assets Header
digital_assets_header_partials
Injects code between the page header and the main content area for the digital assets list page.Exports Actions
exports_actions_partials
Injects code into the page actions area for the exports list page.Exports Header
exports_header_partials
Injects code between the page header and the main content area for the exports list page.Gift Cards Actions
gift_cards_actions_partials
Injects code into the page actions area for the gift cards list page.Gift Cards Header
gift_cards_header_partials
Injects code between the page header and the main content area for the gift cards list page.Gift Cards Filters
gift_cards_filters_partials
Integrations Actions
integrations_actions_partials
Injects code into the page actions area for the integrations list page.Integrations Header
integrations_header_partials
Injects code between the page header and the main content area for the integrations list page.Invitations Actions
invitations_actions_partials
Injects code into the page actions area for the invitations list page.Invitations Header
invitations_header_partials
Injects code between the page header and the main content area for the invitations list page.OAuth Applications Actions
oauth_applications_actions_partials
Injects code into the page actions area for the OAuth applications list page.OAuth Applications Header
oauth_applications_header_partials
Injects code between the page header and the main content area for the OAuth applications list page.Option Types Actions
option_types_actions_partials
Injects code into the page actions area for the option types list page.Option Types Header
option_types_header_partials
Injects code between the page header and the main content area for the option types list page.Pages Actions
pages_actions_partials
Injects code into the page actions area for the pages list page.Pages Header
pages_header_partials
Injects code between the page header and the main content area for the pages list page.Payment Methods Actions
payment_methods_actions_partials
Injects code into the page actions area for the payment methods list page.Payment Methods Header
payment_methods_header_partials
Injects code between the page header and the main content area for the payment methods list page.Post Categories Actions
post_categories_actions_partials
Injects code into the page actions area for the post categories list page.Post Categories Header
post_categories_header_partials
Injects code between the page header and the main content area for the post categories list page.Posts Actions
posts_actions_partials
Injects code into the page actions area for the posts list page.Posts Header
posts_header_partials
Injects code between the page header and the main content area for the posts list page.Posts Filters
posts_filters_partials
Promotions Actions
promotions_actions_partials
Injects code into the page actions area for the promotions list page.Promotions Header
promotions_header_partials
Injects code between the page header and the main content area for the promotions list page.Promotions Filters
promotions_filters_partials
Properties Actions
properties_actions_partials
Injects code into the page actions area for the properties list page.Properties Header
properties_header_partials
Injects code between the page header and the main content area for the properties list page.Refund Reasons Actions
refund_reasons_actions_partials
Injects code into the page actions area for the refund reasons list page.Refund Reasons Header
refund_reasons_header_partials
Injects code between the page header and the main content area for the refund reasons list page.Reimbursement Types Actions
reimbursement_types_actions_partials
Injects code into the page actions area for the reimbursement types list page.Reimbursement Types Header
reimbursement_types_header_partials
Injects code between the page header and the main content area for the reimbursement types list page.Reports Actions
reports_actions_partials
Injects code into the page actions area for the reports list page.Reports Header
reports_header_partials
Injects code between the page header and the main content area for the reports list page.Return Authorization Reasons Actions
Return Authorization Reasons Header
Return Authorizations Actions
Return Authorizations Header
Roles Actions
roles_actions_partials
Injects code into the page actions area for the roles list page.Roles Header
roles_header_partials
Injects code between the page header and the main content area for the roles list page.Shipping Categories Actions
shipping_categories_actions_partials
Injects code into the page actions area for the shipping categories list page.Shipping Categories Header
shipping_categories_header_partials
Injects code between the page header and the main content area for the shipping categories list page.Shipping Methods Actions
shipping_methods_actions_partials
Injects code into the page actions area for the shipping methods list page.Shipping Methods Header
shipping_methods_header_partials
Injects code between the page header and the main content area for the shipping methods list page.Stock Locations Actions
stock_locations_actions_partials
Injects code into the page actions area for the stock locations list page.Stock Locations Header
stock_locations_header_partials
Injects code between the page header and the main content area for the stock locations list page.Stock Transfers Actions
stock_transfers_actions_partials
Injects code into the page actions area for the stock transfers list page.Stock Transfers Header
stock_transfers_header_partials
Injects code between the page header and the main content area for the stock transfers list page.Stock Transfers Filters
stock_transfers_filters_partials
Store Credit Categories Actions
store_credit_categories_actions_partials
Injects code into the page actions area for the store credit categories list page.Store Credit Categories Header
store_credit_categories_header_partials
Injects code between the page header and the main content area for the store credit categories list page.Store Credits Actions
store_credits_actions_partials
Injects code into the page actions area for the store credits list page.Store Credits Header
store_credits_header_partials
Injects code between the page header and the main content area for the store credits list page.Tax Categories Actions
tax_categories_actions_partials
Injects code into the page actions area for the tax categories list page.Tax Categories Header
tax_categories_header_partials
Injects code between the page header and the main content area for the tax categories list page.Tax Rates Actions
tax_rates_actions_partials
Injects code into the page actions area for the tax rates list page.Tax Rates Header
tax_rates_header_partials
Injects code between the page header and the main content area for the tax rates list page.Taxonomies Actions
taxonomies_actions_partials
Injects code into the page actions area for the taxonomies list page.Taxonomies Header
taxonomies_header_partials
Injects code between the page header and the main content area for the taxonomies list page.Themes Actions
themes_actions_partials
Injects code into the page actions area for the themes list page.Themes Header
themes_header_partials
Injects code between the page header and the main content area for the themes list page.Webhooks Subscribers Actions
webhooks_subscribers_actions_partials
Injects code into the page actions area for the webhooks subscribers list page.Webhooks Subscribers Header
webhooks_subscribers_header_partials
Injects code between the page header and the main content area for the webhooks subscribers list page.Zones Actions
zones_actions_partials
Injects code into the page actions area for the zones list page.Zones Header
zones_header_partials
Injects code between the page header and the main content area for the zones list page.Products Actions
products_actions_partials
Injects code into the page actions area (top right of the page) for the products list page. This is useful for adding custom buttons, export options, or other actions.Products Header
products_header_partials
Injects code between the page header and the main content area for the products list page. This is useful for adding notifications, alerts, or additional information.Products Filters
products_filters_partials
f
variable, which is the form builder for the filters.To add a new filter field, you can use the following code:q_name_cont
is the name of the filter field. For filtering we’re using ransack gem, so the name of the filter field is the name of the attribute we’re filtering by. Learn more about ransack search syntax.form-control
is a bootstrap class for styling the input field.data: { filters_target: :input }
is needed for the Stimulus Filters controller to work.Products Page Dropdown
product_dropdown_partials
product
variable.To add an additional dropdown item, you can use the following code:Products Page Form
product_form_partials
f
variable, which is the form builder for the product form, and the product
variable.To add a new section to the product form, you can use the following code:Products Page Sidebar
Shipping Methods Form
shipping_method_form_partials
f
variable, which is the form builder for the shipping method form, and the shipping_method
variable.To add a new section to the shipping method form, you can use the following code:Store Settings Form
store_form_partials
f
variable, which is the form builder for the store form, and the store
variable.To add a new section to the store form, you can use the following code: