Hello guys , I have a question. First: I'd like to...
# support
j
Hello guys , I have a question. First: I'd like to limit the number of products that display on my homepage, Currently all the products in the database . I'd like to be e.g 4 or 5 products featured. I'd probably want to have categories. e.g Featured products, Recently added products etc. Secondly: i keep getting this error i can't seem to solve everytime the products get too many and the pagination doesn't work and i get the error:
Copy code
[413e2389-76e2-46b8-b384-75a5cf9f8d94] ActionView::Template::Error (No route matches {:action=>"show", :controller=>"spree/demo", :page=>"2"}):
[413e2389-76e2-46b8-b384-75a5cf9f8d94]      6: 
[413e2389-76e2-46b8-b384-75a5cf9f8d94]      7: <% content_for :head do %>
[413e2389-76e2-46b8-b384-75a5cf9f8d94]      8:   <% if paginated_products.respond_to?(:total_pages) %>
[413e2389-76e2-46b8-b384-75a5cf9f8d94]      9:     <%= rel_next_prev_link_tags paginated_products %>
[413e2389-76e2-46b8-b384-75a5cf9f8d94]     10:   <% end %>
[413e2389-76e2-46b8-b384-75a5cf9f8d94]     11: <% end %>
[413e2389-76e2-46b8-b384-75a5cf9f8d94]     12:
Thanks in advance.
e
It looks like it’s unable to create one of the pagination links, solidus uses the kaminari gem by default, maybe looking at their docs will shed some light on this error https://github.com/kaminari/kaminari/wiki