Hi @Frosticek.
There is a bug in the pagination of seller items.
Example:
A seller has 100 items in 3 categories and the items per page are set to 20 in the plugin configuration.
so the pagination is like that:
1 2 3 4 5
When i filter the results per category (eg a category that contain 30 items) the pagination still remains
1 2 3 4 5
pages 3, 4, 5 are still displayed and clickable but there are empty as only 2 first pages (1 , 2) contain results. Page 1 has 20 results and page 2 has 10 results (Total 30 results).
How can i fix it so it will display only the pages that contain items ?
This is the code that display the pagination:
<?php if($count_items > $per_page) { ?>
<div id="bpr-pagination">
<?php
$pages = ceil($count_items/$per_page);
$page_actual = ($current_page == '' ? 1 : $current_page);
?>
<?php for ($i = 1; $i <= $pages; $i++) { ?>
<a href="<?php echo osc_route_url('bpr-seller-filter', array('identifier' => $identifier, 'params' => 'city,' . $current_city . ';category,' . $current_cat . ';page,' . $i . ';')); ?>" <?php if($page_actual == $i) { ?>class="bpr-active"<?php } ?>><?php echo $i; ?></a>
<?php } ?>
</div>
<?php } ?>
Also is there any way to add Next button or go to last item button as the default osclass pagination has ? Just think. What if a seller has many items??
Thanks and waiting for your valuable help.