Pagination, next and previous not working

  • Posts: 18
  • Thank you received: 0
10 years 8 months ago #170157

-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3.3

Hi,

The pagination on the product list is not working properly

I found 2 problems.

Fisrt:
The pagination do not take the complete pagination.php in the html folder of my template. That is because in the next file:
administrator/components/com_hikashop/helpers/pagination.php
at line 15 to 26 it put the variable itemOverride in false and it only turn to true when is in admin, otherwise it get his own item active or inactive display and not the one in my pagination.php

The code:

$itemOverride = true;
		$listOverride = false;

		$chromePath = JPATH_THEMES.DS.$app->getTemplate().DS.'html'.DS.'pagination.php';
		if (file_exists($chromePath)){
			require_once ($chromePath);
			if (function_exists('pagination_list_render')) {
				$listOverride = true;
				if(HIKASHOP_J30 && $app->isAdmin())
					$itemOverride = true;
			}
		}
Second:
The next or previews page don't work, you can click it an add de ?start=4 in the url but it doesn't change de product list.
I put the limit in 4 product per page for testing.

My test page: fuden.informatizarte.com/index.php/soluc...s-y-servicios/cursos

Thanks.

Last edit: 10 years 8 months ago by Jerome. Reason: [code] is nice !

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

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #170164

Hello,
Can you download the last Hikashop through our website, install it and test it again ?
Thanks.

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

  • Posts: 18
  • Thank you received: 0
10 years 8 months ago #170270

Hi,

I update to the last version and have de same problem,

you can see it here: fuden.informatizarte.com/index.php/soluc...-ediciones-digitales
The pagination is not working at all.
Also it override my template pagination as you can see it here: fuden.informatizarte.com/index.php/actualidad/noticias
in the pagination.php of the helpers of hikashop it call its own _item_active and _item_inactive avoiding the one in my templete and also the css is not well defined to hide what i don't need whith display:none.

I have other problem with filter sort that I ask here: www.hikashop.com/forum/install-update/87...-productlisting.html
but have no answer. How can I sort my products by custom file with the module filter?

One more question, why can I create a filter type list for categories? it doesn't display nothing unless a you put type singledropdown.
I try to do it this whay but it doesn't work properly the filters: fuden.informatizarte.com/index.php/soluc...y-servicios/tienda-2

Thanks in advance.

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

  • Posts: 26240
  • Thank you received: 4036
  • MODERATOR
10 years 8 months ago #170283

Hi,

HikaShop can't override the pagination of your template and I don't see any CSS rule for the pagination in the HikaShop front-end files.
But your template css file contains specific CSS rules for the pagination
fuden.informatizarte.com/templates/fuden/css/template.css (line 11812)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 18
  • Thank you received: 0
10 years 8 months ago #170306

Hi,

I know I have specific CSS rules for the pagination, but my pagination needs to look like this:
fuden.informatizarte.com/index.php/actualidad/noticias
Only previews and next (attachment pagination-good.png)



but hikashop avoid my template html/pagination.php (only the functions pagination_item_inactive and pagination_item_active) and use his own _item_inactive and _item_active in /administrator/components/com_hikashop/helpers/pagination.php breaking my templete pagination. (attachment pagination-bad.png)





Despite that style thing it doesn't work, you can see here:
fuden.informatizarte.com/index.php/soluc...-ediciones-digitales
Clicking next, last or 2 does nothing.
**UPDATE**
I manage to fix this, it seems that you need to call $this->pagination->getListFooter($this->params->get('limit')); and you can just choose $this->pagination->getPagesLinks(); if you only need that for the pagination to work because the input hidden limitstart inside getListFooter.

Attachments:

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

  • Posts: 18
  • Thank you received: 0
10 years 8 months ago #170621

Hi,

I finaly fix this with css nth-child and nth-last-child but I don't thing is a goog solution,as you can see in the code for the pagination

<div class="pagination">
<ul class="pagination-list">
  <span class="pagenav pagenav_text">Inicio</span>
  <span class="pagenav pagenav_text">Anterior</span>
  <span class="pagenav">1</span>
  <a class="pagenav" title="2" onclick="javascript:document.adminForm_hikashop_category_information_menu_108_12_top.limitstart_hikashop_category_information_menu_108_12.value=4; document.adminForm_hikashop_category_information_menu_108_12_top.submit();return false;">2</a>
  <li>|</li>
  <a class="pagenav hikashop_next_link" title="Siguiente" onclick="javascript: document.adminForm_hikashop_category_information_menu_108_12_top.limitstart_hikashop_category_information_menu_108_12.value=4; document.adminForm_hikashop_category_information_menu_108_12_top.submit();return false;">Siguiente</a><a class="pagenav hikashop_end_link" title="Final" onclick="javascript: document.adminForm_hikashop_category_information_menu_108_12_top.limitstart_hikashop_category_information_menu_108_12.value=4; document.adminForm_hikashop_category_information_menu_108_12_top.submit();return false;">Final</a>
</ul>
<input type="hidden" name="limitstart" value="0">
</div>

The ul and li are from my pagintaion.php of my template.
The span, outside an li are generate by hikashop.

Last edit: 10 years 8 months ago by lechuky.

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

Time to create page: 0.121 seconds
Powered by Kunena Forum