Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyThemeHooks < Spree::ThemeSupport::HookListener
- replace :homepage_products, 'shared/my_partial'
- replace :homepage_products, :inline => %(<h2><%= link_to('inline', '#') %>, foo = <%= foo %>, product count = <%= @products.count %></h2>)
- replace :homepage_products do
- %(<%= link_to('With block', '#') %><br />
- foo = <%= foo %><br />
- product count = <%= @products.count %></h2>)
- end
- end
Add Comment
Please, Sign In to add comment