[Skip to main content](#vessel-content)

#   Pagination, next and previous not working

##

- **[lechuky](/forum/user/32282-lechuky "View lechuky's Profile")**
- [![lechuky's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32282-lechuky "View lechuky's Profile") Topic Author
- [ Offline](/forum/user/32282-lechuky)

Less More

- Posts: 18
- Thank you received: 0
-
-

12 years 1 month ago -  12 years 1 month ago [\#170157](#170157) by [lechuky](/forum/user/32282-lechuky "View lechuky's Profile")  *[Pagination, next and previous not working](/forum/26-product-category-display/870849-pagination-next-and-previous-not-working#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&#95;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:  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.")* was created by *[lechuky](/forum/user/32282-lechuky "View lechuky's Profile")*

-- 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: Code:

$itemOverride = true; $listOverride = false; $chromePath = JPATH_THEMES.DS.$app-&gt;getTemplate().DS.'html'.DS.'pagination.php'; if (file_exists($chromePath)){ require_once ($chromePath); if (function_exists('pagination_list_render')) { $listOverride = true; if(HIKASHOP_J30 &amp;&amp; $app-&gt;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](http://fuden.informatizarte.com/index.php/soluciones-y-servicios/cursos)

Thanks.

Last edit: 12 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA4NDktcGFnaW5hdGlvbi1uZXh0LWFuZC1wcmV2aW91cy1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 1 month ago [\#170164](#170164) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Pagination, next and previous not working](/forum/26-product-category-display/870849-pagination-next-and-previous-not-working#170164 "-- 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&#95;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:  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.")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA4NDktcGFnaW5hdGlvbi1uZXh0LWFuZC1wcmV2aW91cy1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lechuky](/forum/user/32282-lechuky "View lechuky's Profile")**
- [![lechuky's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32282-lechuky "View lechuky's Profile") Topic Author
- [ Offline](/forum/user/32282-lechuky)

Less More

- Posts: 18
- Thank you received: 0
-
-

12 years 1 month ago [\#170270](#170270) by [lechuky](/forum/user/32282-lechuky "View lechuky's Profile")  Replied by *[lechuky](/forum/user/32282-lechuky "View lechuky's Profile")* on topic *[Pagination, next and previous not working](/forum/26-product-category-display/870849-pagination-next-and-previous-not-working#170270 "-- 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&#95;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:  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.")*

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](http://fuden.informatizarte.com/index.php/soluciones-y-servicios/publicaciones-y-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](http://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](http://www.hikashop.com/forum/install-update/870592-sort-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](http://fuden.informatizarte.com/index.php/soluciones-y-servicios/tienda-2)

Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA4NDktcGFnaW5hdGlvbi1uZXh0LWFuZC1wcmV2aW91cy1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 1 month ago [\#170283](#170283) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Pagination, next and previous not working](/forum/26-product-category-display/870849-pagination-next-and-previous-not-working#170283 "-- 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&#95;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:  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.")*

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](http://fuden.informatizarte.com/templates/fuden/css/template.css) (line 11812)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA4NDktcGFnaW5hdGlvbi1uZXh0LWFuZC1wcmV2aW91cy1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lechuky](/forum/user/32282-lechuky "View lechuky's Profile")**
- [![lechuky's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32282-lechuky "View lechuky's Profile") Topic Author
- [ Offline](/forum/user/32282-lechuky)

Less More

- Posts: 18
- Thank you received: 0
-
-

12 years 1 month ago [\#170306](#170306) by [lechuky](/forum/user/32282-lechuky "View lechuky's Profile")  Replied by *[lechuky](/forum/user/32282-lechuky "View lechuky's Profile")* on topic *[Pagination, next and previous not working](/forum/26-product-category-display/870849-pagination-next-and-previous-not-working#170306 "-- 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&#95;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:  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.")*

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](http://fuden.informatizarte.com/index.php/actualidad/noticias)
Only previews and next (attachment pagination-good.png)

[ ![pagination-good.png](/forum/attachment/19411) ](/forum/attachment/19411 "...ation-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)

[ ![pagination-bad.png](/forum/attachment/19412) ](/forum/attachment/19412 "...nation-bad.png")

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

- [ ![pagination-good.png](/forum/attachment/19411) ](/forum/attachment/19411 "...ation-good.png") [ ](/forum/attachment/19411?download=1 "...ation-good.png")
- [ ![pagination-bad.png](/forum/attachment/19412) ](/forum/attachment/19412 "...nation-bad.png") [ ](/forum/attachment/19412?download=1 "...nation-bad.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA4NDktcGFnaW5hdGlvbi1uZXh0LWFuZC1wcmV2aW91cy1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lechuky](/forum/user/32282-lechuky "View lechuky's Profile")**
- [![lechuky's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32282-lechuky "View lechuky's Profile") Topic Author
- [ Offline](/forum/user/32282-lechuky)

Less More

- Posts: 18
- Thank you received: 0
-
-

12 years 1 month ago -  12 years 1 month ago [\#170621](#170621) by [lechuky](/forum/user/32282-lechuky "View lechuky's Profile")  Replied by *[lechuky](/forum/user/32282-lechuky "View lechuky's Profile")* on topic *[Pagination, next and previous not working](/forum/26-product-category-display/870849-pagination-next-and-previous-not-working#170621 "-- 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&#95;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:  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.")*

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 Code:

&lt;div class="pagination"&gt; &lt;ul class="pagination-list"&gt; &lt;span class="pagenav pagenav_text"&gt;Inicio&lt;/span&gt; &lt;span class="pagenav pagenav_text"&gt;Anterior&lt;/span&gt; &lt;span class="pagenav"&gt;1&lt;/span&gt; &lt;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;"&gt;2&lt;/a&gt; &lt;li&gt;&#124;&lt;/li&gt; &lt;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;"&gt;Siguiente&lt;/a&gt;&lt;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;"&gt;Final&lt;/a&gt; &lt;/ul&gt; &lt;input type="hidden" name="limitstart" value="0"&gt; &lt;/div&gt;

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

Last edit: 12 years 1 month ago by [lechuky](/forum/user/32282-lechuky "View lechuky's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzA4NDktcGFnaW5hdGlvbi1uZXh0LWFuZC1wcmV2aW91cy1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.338 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
