pagination to one product

  • Posts: 25
  • Thank you received: 0
12 years 4 months ago #56001

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.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #56046

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.

  • Posts: 25
  • Thank you received: 0
12 years 4 months ago #56087

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.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #56130

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.

  • Posts: 25
  • Thank you received: 0
12 years 4 months ago #56177

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.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #56215

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.

  • Posts: 25
  • Thank you received: 0
12 years 4 months ago #56263

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.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #56266

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.

  • Posts: 25
  • Thank you received: 0
12 years 4 months ago #56297

Thank you very much for your help

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

Time to create page: 0.070 seconds
Powered by Kunena Forum