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

#   override pagination

##

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

Less More

- Posts: 2705
- Thank you received: 74
-
-

14 years 9 months ago [\#41115](#41115) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[override pagination](/forum/5-support-en-francais-french-support-/41115-override-pagination#41115 "Bonjour  le fichier ./administrator/components/com&#95;hikashop/helpers/pagination.php permet t il un override et si oui comment ? il n'y a pas de view modifiable pour ça ?  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

Bonjour

le fichier ./administrator/components/com_hikashop/helpers/pagination.php permet t il un override et si oui comment ? il n'y a pas de view modifiable pour ça ?

merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDExMTUtb3ZlcnJpZGUtcGFnaW5hdGlvbj90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

14 years 8 months ago [\#41234](#41234) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: override pagination](/forum/5-support-en-francais-french-support-/41115-override-pagination#41234 "Bonjour  le fichier ./administrator/components/com&#95;hikashop/helpers/pagination.php permet t il un override et si oui comment ? il n'y a pas de view modifiable pour ça ?  merci")*

Oui il permet l'override dans votre template mais pas par le système d'édition de vue car nous avons voulu rester compatible avec le système d'override de pagination de joomla:
[ docs.joomla.org/Understanding\_Output\_Ove...tion\_Links\_Overrides](http://docs.joomla.org/Understanding_Output_Overrides#Pagination_Links_Overrides)
[ demente-design.com/extensions/item/74-jo...-pagination-override](http://demente-design.com/extensions/item/74-joomla-16-pagination-override)

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

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

Less More

- Posts: 35
- Thank you received: 1
-
-

13 years 9 months ago -  13 years 9 months ago [\#88458](#88458) by [bohemier](/forum/user/8593-bohemier "View bohemier's Profile")  Replied by *[bohemier](/forum/user/8593-bohemier "View bohemier's Profile")* on topic *[Re: override pagination](/forum/5-support-en-francais-french-support-/41115-override-pagination#88458 "Bonjour  le fichier ./administrator/components/com&#95;hikashop/helpers/pagination.php permet t il un override et si oui comment ? il n'y a pas de view modifiable pour ça ?  merci")*

Bonjour Nicolas,

Il semble que seulement pagination_list_render() soit pris en considération dans l'override, comme le démontre /administrator/components/com_hikashop/helpers/pagination.php, fonction getPagesLinks()

Je cherche à 'overrider' ce que fait getLimitBox(), qui détermine la valeur de $list. Je crois que normalement on le fait dans pagination_list_footer().

Est-ce possible sans changer le fichier pagination.php de hikashop?

Il me semble que Hikashop devrait appeler cette méthode à la fin de getListFooter(), si elle est définie dans les overrides... comme ceci:
Code:

function getListFooter(){ $list = array(); $list['limit'] = $this-&gt;limit; $list['limitstart'] = $this-&gt;limitstart; $list['total'] = $this-&gt;total; $list['limitfield'] = $this-&gt;getLimitBox(); $list['pagescounter'] = $this-&gt;getPagesCounter(); $list['pageslinks'] = $this-&gt;getPagesLinks(); $app = JFactory::getApplication(); $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_footer')) { $listOverride = true; } } return ($listOverride) ? pagination_list_footer($list) : $this-&gt;_list_footer($list); }

Merci

Last edit: 13 years 9 months ago by [bohemier](/forum/user/8593-bohemier "View bohemier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDExMTUtb3ZlcnJpZGUtcGFnaW5hdGlvbj90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 9 months ago [\#88630](#88630) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: override pagination](/forum/5-support-en-francais-french-support-/41115-override-pagination#88630 "Bonjour  le fichier ./administrator/components/com&#95;hikashop/helpers/pagination.php permet t il un override et si oui comment ? il n'y a pas de view modifiable pour ça ?  merci")*

Bonjour,

Un nouveau système d'override de class a été mis en place dans HikaShop 2.1.0
Celui ci va permettre d'override la fonction getListFooter (ainsi que la fonction getLimitBox) de la class pagination.

Cordialement,

---

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

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

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

Less More

- Posts: 35
- Thank you received: 1
-
-

13 years 9 months ago [\#88868](#88868) by [bohemier](/forum/user/8593-bohemier "View bohemier's Profile")  Replied by *[bohemier](/forum/user/8593-bohemier "View bohemier's Profile")* on topic *[Re: override pagination](/forum/5-support-en-francais-french-support-/41115-override-pagination#88868 "Bonjour  le fichier ./administrator/components/com&#95;hikashop/helpers/pagination.php permet t il un override et si oui comment ? il n'y a pas de view modifiable pour ça ?  merci")*

Magnifique! J'ai bien hâte de voir cela... Merci

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

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