<% } %>
<% if(('pagination' == buttonType) && (count > listing.length)){
let total = count;
let pages = Math.ceil(total / productLimit);
let current = Number(paged);
let prev = current - 1;
let next = current + 1;
let end_size = 3;
let mid_size = 3;
let dots = false;
%>
<% } %>