<%= ob.polyT('userPage.store.categoryFilter.heading') %>
>
<% ob.categories.slice(0, ob.maxInitiallyVisibleCats - 1).forEach((cat, index) => { var flatCat = cat.replace(/\s/g, '-'); // remove spaces %>
>
<% }) %> <% // adding 1 to the length to account for the All category we hard-code %> <% if ((ob.categories.length + 1) > ob.maxInitiallyVisibleCats) { %>
<% ob.categories.slice(ob.maxInitiallyVisibleCats - 1).forEach((cat, index) => { var flatCat = cat.replace(/\s/g, '-'); // remove spaces %>
>
<% }) %>
<%= ob.polyT('userPage.store.categoryFilter.showMore', (ob.categories.length + 1) - ob.maxInitiallyVisibleCats) %> <%= ob.polyT('userPage.store.categoryFilter.showLess') %>
<% } %>