Skip to content

Commit

Permalink
Merge views subtree
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 6, 2022
2 parents 6e2b4ac + 8799e27 commit 059d2d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion template/pages/@/sections/collection-retail.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ if (_.state.products && _.state.products.length) {
%>
<div class="collection-retail">
<%- await include('@/sections/inc/retail-grid', {
_, opt: { search, sort: opt.sort }
_, opt: {
search,
sort: opt.sort,
page_size: 100
}
}) %>
</div>
<%
Expand Down
3 changes: 3 additions & 0 deletions template/pages/@/sections/inc/retail-grid.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ if (!opt.items) {
if (opt.sort) {
search.setSortOrder(opt.sort)
}
if (opt.page_size) {
search.setPageSize(opt.page_size)
}
try {
await search.fetch()
items = search.getItems()
Expand Down

0 comments on commit 059d2d2

Please sign in to comment.