pagination steps

  • Posts: 23
  • Thank you received: 0
12 years 1 month ago #67690

Hi,
I'm displaying 6 products on a page, but the pagination at the bottom is showing steps of 5 and I need to change to 6,12,18,24....etc
I can't find where to change the steps, any ideas?
Many thanks,
Derek

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67778

Hi Derek,

I don't think that this is possible without making BIG changes, but you should maybe disable the pagination with some CSS code like this :

.hikashop_products_pagination{ display:none; }
Hope this will help you.

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

  • Posts: 23
  • Thank you received: 0
12 years 1 month ago #67822

Is the code for the pagination in a single location or scattered throughout the system?
How does the code decide to use steps of 5?

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

  • Posts: 23
  • Thank you received: 0
12 years 1 month ago #67823

if I disable the pagination how can the customer see there are more products??

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67839

the pagination will be set to "all" with this code.

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

  • Posts: 66
  • Thank you received: 3
12 years 1 month ago #68720

I am struggling with the same. Like Spock would say it will be logical that the pagination steps will be shown with steps equally like the setup in the configuration of Hikashop. So showing 6 products initially per page (2 rows of 3 products) should result in the numbers 6, 12, 18 etc. in the input field. Not 5,10,15 etc. The other thing is once a value like 10 or 5 is chosen the initial value of 6 is lost (cookie?). And there is an input of "all", this a English value for all products in that category where it should be Dutch "Alle". Can't imagine that these values can't be set somewhere or be calculated automatically depending on the settings made in the product output/view (2 rows - maximum of 6 products per page).




Attachments:

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #68914

You can redefine yourself the pagination in the file administrator/components/com_hikashop/helpers/pagination.php

We'll look at improving that for next version.

The following user(s) said Thank You: didero

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

  • Posts: 66
  • Thank you received: 3
12 years 1 month ago #68937

Nicolas, thank you so much. This one is easily fixed for my purpose. Changed the last part of the file to:

function getLimitBox(){
$limits = array ();
$limits[] = JHTML::_('select.option', (string)$this->limit);
for ($i = 6; $i <= 32; $i += 6) {
$limits[] = JHTML::_('select.option', "$i");
}
$limits[] = JHTML::_('select.option', '48');
$limits[] = JHTML::_('select.option', '96');
$limits[] = JHTML::_('select.option', '0', JText::_('Alle'));
return JHTML::_('select.genericlist', $limits, 'limit'.$this->hikaSuffix, 'class="inputbox" size="1" onchange="this.form.submit()"', 'value', 'text', $this->_viewall ? 0 : $this->limit);
}
}


In action here: http://www.1968dewinkel.nl/stoffen-lint/stoffen-katoen

Attachments:
Last edit: 12 years 1 month ago by didero.

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

Time to create page: 0.101 seconds
Powered by Kunena Forum