Hooks
The following is a list of all hooks included in Spree’s default templates. These allow your own content to be inserted into the templates without having to override them. For instructions on using hooks, refer to the customization guide
1 Public views
1.1 Layout (layouts/spree_application.html.erb)
- inside_head (allows you to modify content of head tag)
- sidebar (for any pages that have a sidebar)
1.2 Homepage (products/index.html.erb)
- homepage_sidebar_navigation
- homepage_products
1.3 Taxon (taxons/show.html.erb)
- taxon_sidebar_navigation
- taxon_products
- taxon_children
1.4 View Product (products/show.html.erb products/taxons.html.erb products/_cartform.html.erb)
- product_description
- product_properties
- product_taxons (‘Look for similar items’)
- product_price
- inside_product_cart_form
1.5 Cart (orders/edit.html.erb)
- inside_cart_form
- cart_items
1.6 Login (user_sessions/new.html.erb)
- login
1.7 Signup (users/new.html.erb, users/_form.html.erb)
- signup
- signup_inside_form
- signup_below_password_fields (within form, below password confirmation field)
2 Admin Views
2.1 Layout (layouts/admin.html.erb)
- admin_inside_head
2.2 Navigation
The following hooks allow list items to be added to various admin menus
- admin_tabs
- admin_product_sub_tabs
- admin_order_tabs (sidebar menu for individual order)
- admin_product_tabs (sidebar menu for individual product)
