Skip to main content

pagination to one product

More
14 years 3 months ago #56001 by papaleksi
Hello i need your help please,
i have a category with only 1 product and another one with 2 products.
It appears pagination menu to them.
I do not need to have pagination to that few products.
How can i hide it?

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

More
14 years 3 months ago #56046 by nicolas
Hi,

Edit the file administrator/components/com_hikashop/types/pagination.php and add the code:
$this->values[] = JHTML::_('select.option', '',JText::_('HIKASHOP_NO'));

before:
$this->values[] = JHTML::_('select.option', 'top',JText::_('HIKA_TOP'));

Then, in the Display tab of the configuration, you will be able to turn off the pagination.

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

More
14 years 3 months ago #56087 by papaleksi
hi Nicolas,
i make the change in the file you told me but how can i turn it off in the tab display?

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

More
14 years 3 months ago #56130 by nicolas
In the Display tab of the configuration, you have the option called "Pagination" that you can set to "no".
www.hikashop.com/en/support/documentatio...-config.html#display
The following user(s) said Thank You: austio

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

More
14 years 3 months ago #56177 by papaleksi
Dear Sir maybe i did not explain you my problem very good.
I do not want to turn off the pagination i just want to hide it if the products are less for example 15.
I mean that i do not need to have pagination if my products are 1,2 or 3 per page.
This occurred after we make this change
www.hikashop.com/ja/forum/4-how-to/54524...ination-problem.html

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

More
14 years 3 months ago #56215 by nicolas
That's normal then...
Then you will want to do that change instead of the one of that thread:

$this->pageInfo->elements->total>=15

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

More
14 years 3 months ago #56263 by papaleksi
Thank you, my problem solved!
But how can i make it have pagination always 15 by default because now my problem for 1,2,3 products solved but the pagination is 20.
Thank you very much again nicolas

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

More
14 years 3 months ago #56266 by nicolas
That depends on the "number of items" option of your menus and modules (you can edit them via Display>Content menus/modules)

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

More
14 years 3 months ago #56297 by papaleksi
Thank you very much for your help

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

Time to create page: 0.220 seconds
Powered by Kunena Forum