How to disable or corrupt "all" on pagination?

  • Posts: 8
  • Thank you received: 0
11 years 1 month ago #123036

-- HikaShop version -- : HikaShop Business: 2.2.1
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3.16
-- Browser(s) name and version -- : Firefox 23.0.1

I have a lot of products in the store. How to disable the ability to show "All" in the selection of pagination? (only from the front, of course!) (eg show 10, 20, 40, all) - How to disable or corrupt "all". The shop is not able to display 4000 products, it takes a very long time, and the user goes.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #123041

Hi,
One of the solution will be to edit "getLimitBox()" function through the "administrator/components/com_hikashop/helpers/pagination.php" file and change this line :

$limits[] = JHTML::_('select.option', '0', JText::_('HIKA_ALL'));
By :
//$limits[] = JHTML::_('select.option', '0', JText::_('HIKA_ALL'));

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
11 years 1 month ago #123046

Works. TNX!

Please Log in or Create an account to join the conversation.

Time to create page: 0.042 seconds
Powered by Kunena Forum