Hello,
I have those two functions already in my pagination.php override file, but they are not applying to HikaShop. They are only affecting the Joomla core pagination. I have included the two functions below.
Item Inactive
function pagination_item_inactive(&$item)
{
// Check for "Start" item
if ($item->text == JText::_('JLIB_HTML_START'))
{
return '<li class="disabled"><a><i class="icon-first"></i></a></li>';
}
// Check for "Prev" item
if ($item->text == JText::_('JPREV'))
{
return '<li class="disabled"><a><i class="icon-previous"></i></a></li>';
}
// Check for "Next" item
if ($item->text == JText::_('JNEXT'))
{
return '<li class="disabled"><a><i class="icon-next"></i></a></li>';
}
// Check for "End" item
if ($item->text == JText::_('JLIB_HTML_END'))
{
return '<li class="disabled"><a><i class="icon-last"></i></a></li>';
}
// Check if the item is the active page
if (isset($item->active) && ($item->active))
{
return '<li class="active hidden-phone"><span>' . $item->text . '</span></li>';
}
// Doesn't match any other condition, render a normal item
return '<li class="disabled hidden-phone"><a>' . $item->text . '</a></li>';
}
Item Active
function pagination_item_active(&$item)
{
$class = '';
// Check for "Start" item
if ($item->text == JText::_('JLIB_HTML_START'))
{
$display = '';
}
// Check for "Prev" item
if ($item->text == JText::_('JPREV'))
{
$display = JText::_('JPREV');
}
// Check for "Next" item
if ($item->text == JText::_('JNEXT'))
{
$display = JText::_('JNEXT');
}
// Check for "End" item
if ($item->text == JText::_('JLIB_HTML_END'))
{
$display = '';
}
// If the display object isn't set already, just render the item with its text
if (!isset($display))
{
$display = $item->text;
$class = ' class="hidden-phone"';
}
return '<li' . $class . '><a title="' . $item->text . '" href="' . $item->link . '" class="pagenav">' . $display . '</a></li>';
}
The list limit only seems to apply to the items displayed on the parent menu item and not on the individual brand/category pages. If I change the number of items from 20 to 5, the parent menu item only displays 5 items with pagination, but the brand/category pages keep using 20, 40, 60, etc. This is not a big issue, but it would be nice if HikaShop inherited the core list limit set in the configuration file, then gave an option to override that value.