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

#   disable pagination memory

##

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

Less More

- Posts: 59
- Thank you received: 0
-
-

13 years 6 months ago [\#99588](#99588) by [Dodesign](/forum/user/13531-dodesign "View Dodesign's Profile")  *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#99588 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")* was created by *[Dodesign](/forum/user/13531-dodesign "View Dodesign's Profile")*

how can i disable remembering pagination in hikashop?
for example:
1) i'm click on some category in categories menu.
2) then click any page in pagination(for example, 3)
3) go to any other page
4) when i return in same category i'm see third page, but i need to see first.
Is it possible to fix?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 6 months ago [\#99786](#99786) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#99786 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")*

There is nothing to fix as it's not a bug, it's normal that it works like that.

If you want to change that behavior, you will have to modify several lines of code in several HikaShop core files.
Please give links to the pages where you have listings where you want to change that so that we can tell you more exactly what you can do.

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

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

Less More

- Posts: 59
- Thank you received: 0
-
-

13 years 6 months ago [\#99804](#99804) by [Dodesign](/forum/user/13531-dodesign "View Dodesign's Profile")  Replied by *[Dodesign](/forum/user/13531-dodesign "View Dodesign's Profile")* on topic *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#99804 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")*

i'm use standard hikashop "products listing" menu.
url's:
[ kolinz.dodesign.by/katalog/kontaktnie-linzi/odnodnevnie.html](http://kolinz.dodesign.by/katalog/kontaktnie-linzi/odnodnevnie.html)
[ kolinz.dodesign.by/katalog/kontaktnie-linzi/ezhemesyachnie.html](http://kolinz.dodesign.by/katalog/kontaktnie-linzi/ezhemesyachnie.html)
[ kolinz.dodesign.by/katalog/kontaktnie-linzi/kvartalnie.html](http://kolinz.dodesign.by/katalog/kontaktnie-linzi/kvartalnie.html)
[ kolinz.dodesign.by/katalog/kontaktnie-linzi/tradicionnie.html](http://kolinz.dodesign.by/katalog/kontaktnie-linzi/tradicionnie.html)
[ kolinz.dodesign.by/katalog/kontaktnie-linzi/toricheskie.html](http://kolinz.dodesign.by/katalog/kontaktnie-linzi/toricheskie.html)
[ kolinz.dodesign.by/katalog/kontaktnie-linzi/cvetnie.html](http://kolinz.dodesign.by/katalog/kontaktnie-linzi/cvetnie.html)
[ kolinz.dodesign.by/katalog/aksessuari-dl...tvori-dlya-linz.html](http://kolinz.dodesign.by/katalog/aksessuari-dlya-linz/rastvori-dlya-linz.html)
[ kolinz.dodesign.by/katalog/aksessuari-dl...yajuschie-kapli.html](http://kolinz.dodesign.by/katalog/aksessuari-dlya-linz/uvlazhnyajuschie-kapli.html)
[ kolinz.dodesign.by/katalog/aksessuari-dl...hodu-i-ochistke.html](http://kolinz.dodesign.by/katalog/aksessuari-dlya-linz/sredstva-po-uhodu-i-ochistke.html)
[ kolinz.dodesign.by/katalog/aksessuari-dl...ugie-aksessuari.html](http://kolinz.dodesign.by/katalog/aksessuari-dlya-linz/drugie-aksessuari.html)
[ kolinz.dodesign.by/katalog/brendi/alcon.html](http://kolinz.dodesign.by/katalog/brendi/alcon.html)
[ kolinz.dodesign.by/katalog/brendi/bauschlomb.html](http://kolinz.dodesign.by/katalog/brendi/bauschlomb.html)
[ kolinz.dodesign.by/katalog/brendi/ciba-vision.html](http://kolinz.dodesign.by/katalog/brendi/ciba-vision.html)
[ kolinz.dodesign.by/katalog/brendi/cooper-vision.html](http://kolinz.dodesign.by/katalog/brendi/cooper-vision.html)
[ kolinz.dodesign.by/katalog/brendi/maxima.html](http://kolinz.dodesign.by/katalog/brendi/maxima.html)
[ kolinz.dodesign.by/katalog/brendi/sauflon.html](http://kolinz.dodesign.by/katalog/brendi/sauflon.html)
[ kolinz.dodesign.by/katalog/brendi/drugie-brendi.html](http://kolinz.dodesign.by/katalog/brendi/drugie-brendi.html)

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 6 months ago [\#99816](#99816) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#99816 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")*

Change the code: Code:

$oldValue = $app-&gt;getUserState($this-&gt;paramBase.'.list_limit'); if(empty($oldValue)){ $oldValue = $this-&gt;params-&gt;get('limit'); } $pageInfo-&gt;limit-&gt;value = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.'.list_limit', 'limit_'.$this-&gt;params-&gt;get('main_div_name').$category_selected, $this-&gt;params-&gt;get('limit'), 'int' ); if($oldValue!=$pageInfo-&gt;limit-&gt;value){ JRequest::setVar('limitstart_'.$this-&gt;params-&gt;get('main_div_name').$category_selected,0); }

to: Code:

$pageInfo-&gt;limit-&gt;value = JRequest::getVar('limitstart_'.$this-&gt;params-&gt;get('main_div_name').$category_selected,0);

and: Code:

$pageInfo-&gt;limit-&gt;start = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.'.limitstart', 'limitstart_'.$this-&gt;params-&gt;get('main_div_name').$category_selected, 0, 'int' );

to: Code:

$pageInfo-&gt;limit-&gt;start = JRequest::getInt('limitstart_'.$this-&gt;params-&gt;get('main_div_name').$category_selected, 0 );

in the file components/com_hikashop/views/product/view.html.php and that should do what you want.

The following user(s) said Thank You: [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")

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

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

Less More

- Posts: 59
- Thank you received: 0
-
-

13 years 6 months ago [\#99849](#99849) by [Dodesign](/forum/user/13531-dodesign "View Dodesign's Profile")  Replied by *[Dodesign](/forum/user/13531-dodesign "View Dodesign's Profile")* on topic *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#99849 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")*

it's two lines with Code:

$oldValue = $app-&gt;getUserState($this-&gt;paramBase.'.list_limit'); if(empty($oldValue)){ $oldValue = $this-&gt;params-&gt;get('limit'); } $pageInfo-&gt;limit-&gt;value = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.'.list_limit', 'limit_'.$this-&gt;params-&gt;get('main_div_name').$category_selected, $this-&gt;params-&gt;get('limit'), 'int' ); if($oldValue!=$pageInfo-&gt;limit-&gt;value){ JRequest::setVar('limitstart_'.$this-&gt;params-&gt;get('main_div_name').$category_selected,0); }

on line 309 and 375

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile")
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

13 years 3 months ago [\#113766](#113766) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#113766 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")*

Dodesign, I changed only second and it works.

But not only pagination remembered. Selected filter remember too. How to disable it? So each time I open category, it has no filter applied.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 3 months ago [\#113838](#113838) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#113838 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")*

Regarding the filters, you can do like that:
[ www.hikashop.com/en/forum/2-general-talk...mechanics.html#98232](http://www.hikashop.com/en/forum/2-general-talk-about-hikashop/79974-filters-mechanics.html#98232)

The following user(s) said Thank You: [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")

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

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile")
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#122537](#122537) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#122537 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")*

I found that if I made the replacements as described in post above the pagination was removed and the filter changed to 100.

So instead I simply commented out the two instances of

JRequest::setVar('limitstart_'.$this-&gt;params-&gt;get('main_div_name').$category_selected,0);

Now I always go to first page when revisiting the page.

/DM

---

[ deeemm.com](http://deeemm.com)

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

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile")
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#122542](#122542) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#122542 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")*

Seems I spoke too soon. now no longer working ![:(](/media/kunena/emoticons/22.png ":(")

Will try above mod again.

---

[ deeemm.com](http://deeemm.com)

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

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile")
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#122544](#122544) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[disable pagination memory](/forum/2-general-talk-about-hikashop/80519-disable-pagination-memory#122544 "how can i disable remembering pagination in hikashop? for example: 1) i'm click on some category in categories menu. 2) then click any page in pagination(for example, 3) 3) go to any other page 4) when i return in same category i'm see third page, but i need to see first. Is it possible to fix?")*

To disable only the pagination memory it's just the second part - change
Code:

$pageInfo-&gt;limit-&gt;start = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.'.limitstart', 'limitstart_'.$this-&gt;params-&gt;get('main_div_name').$category_selected, 0, 'int' );

to: Code:

$pageInfo-&gt;limit-&gt;start = JRequest::getInt('limitstart_'.$this-&gt;params-&gt;get('main_div_name').$category_selected, 0 );

in the file ***components/com\_hikashop/views/product/view.html.php***

---

[ deeemm.com](http://deeemm.com)

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgwNTE5LWRpc2FibGUtcGFnaW5hdGlvbi1tZW1vcnk/dG1wbD1tYXJrZG93bg==) 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.133 seconds

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

[](#top)
