Season's Greetings to you David!
Fast question, on this site {link saved} I'm reworking, in the product section listings I want to add a Load More button at the bottom of each pane to load more products from the category or keyword I'm using to pull these products with.
What is the correct coding for PT to make this happen? Been trying to work it out, and it's eluded me.
Thanks friend,
Hi,
If you'd just like a Load More... button instead of the pagination links have a go with the following as a complete replacement of html/navigation.php
<?php
if ($navigation["resultCount"] > $config_resultsPerPage)
{
$totalPages = ceil($navigation["resultCount"] / $config_resultsPerPage);
if ($page < $totalPages)
{
$nextPage = $page+1;
if ($rewrite)
{
$nextHREF = $nextPage.".html";
}
else
{
$nextHREF = $config_baseHREF."search.php?q=".urlencode($q)."&page=".$nextPage."&sort=".$sort;
}
print "<div class='row'>";
print "<div class='small-12 columns'>";
print "<a href='".$nextHREF."' class='button'>Load More...</a>";
print "</div>";
print "</div>";
}
}
?>
Hope this helps!
Cheers,
David.
--
PriceTapestry.com