- Posts: 90
- Thank you received: 2
How to disable show "All" products in a category
13 years 6 months ago #94055
by lex131
How to disable show "All" products in a category was created by lex131
Hello,
As you know, my project has over 150.000 products, and some categories, over 40.000 products.
If someone selects show "All" products in a category, my server will retire and go on a vacation
.
So please tell me, how can I control the drop down and disable some options, like All.
Thank you!
As you know, my project has over 150.000 products, and some categories, over 40.000 products.
If someone selects show "All" products in a category, my server will retire and go on a vacation
So please tell me, how can I control the drop down and disable some options, like All.
Thank you!
Please Log in or Create an account to join the conversation.
13 years 6 months ago #94094
by nicolas
Replied by nicolas on topic How to disable show "All" products in a category
Hi,
You can remove the line
$limits[] = JHTML::_('select.option', '0', JText::_('HIKA_ALL'));
in the file administrator/components/com_hikashop/helpers/pagination.php
Ideally though, it's best to use a joomla template override to change the display of the pagination so that you won't have to reapply your changes for every update:
docs.joomla.org/Understanding_Output_Ove...tion_Links_Overrides
demente-design.com/extensions/item/74-jo...-pagination-override
You can remove the line
$limits[] = JHTML::_('select.option', '0', JText::_('HIKA_ALL'));
in the file administrator/components/com_hikashop/helpers/pagination.php
Ideally though, it's best to use a joomla template override to change the display of the pagination so that you won't have to reapply your changes for every update:
docs.joomla.org/Understanding_Output_Ove...tion_Links_Overrides
demente-design.com/extensions/item/74-jo...-pagination-override
Please Log in or Create an account to join the conversation.
Time to create page: 0.169 seconds