<table class="product-table">
    <thead>
        <tr>
            <!-- Added sortable header condition, specially for map popup(we don't want sortable header on map view) -->
            <% if $SortableHeader && $SortableHeader == "No" %>
                <th><% _t('ClassicViewPage.TABLE.HeadingName', 'Name') %></th>
                <th><% _t('ClassicViewPage.TABLE.HeadingCategory', 'Category') %></th>
            <% else %>
                <th>
                      <a href="$LinkSort('n')">
                          <% _t('ClassicViewPage.TABLE.HeadingName', 'Name') %>
                          <i class="fa $SortIconClass('n')"></i>
                      </a>
                </th>
                <th colspan="3">
                    <a href="$LinkSort('c')">
                        <% _t('ClassicViewPage.TABLE.HeadingCategory', 'Category') %>
                        <i class="fa $SortIconClass('c')"></i>
                    </a>
                </th>
            <% end_if %>
        </tr>
    </thead>
    <tbody>
    <% loop $PaginatedProductList %>
        <tr data-generator-id="$GeneratorID"<% if $ClassName == "ProductInstance" %> data-instance-id="$ID"<% end_if %> data-show-url="products/show/" data-del-url="products/delete/">
            $ProductTableRow
        </tr>
    <% end_loop %>
    </tbody>
    <% if $PaginatedProductList.MoreThanOnePage %>
      <tfoot>
        <tr>
            <td colspan="4">
                <% include Pagination List=$PaginatedProductList %>
            </td>
        </tr>
      </tfoot>
    <% end_if %>
</table>
