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

#   Need pagination at top of each product page . . .

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 6 months ago [\#47346](#47346) by [vn2073](/forum/user/6944-vn2073 "View vn2073's Profile")  *[Need pagination at top of each product page . . .](/forum/2-general-talk-about-hikashop/47346-need-pagination-at-top-of-each-product-page#47346 "Hello HikaShop, I found 1 topic in this forum that talks about top pagination, but it's not clear and cannot solve my problem when I need pagination appear at top either bottom of each page. In VIEW display, I open file &quot;listing&#95;div.php&quot;, I see code for TOP and under , code for BOTTOM, but it does not appear at top of each page. Could you please give me some helps?? I appreciate about this help. Thank you. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $pagination = $this-&gt;config-&gt;get('pagination','bottom', 'top'); if(in&#95;array($pagination,array('top','both')) &amp;&amp; $this-&gt;params-&gt;get('show&#95;limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;pageInfo-&gt;limit-&gt;value){ $this-&gt;pagination-&gt;form = '&#95;top';?&gt; form action=&quot;&amp;lt;?php echo hikashop&#95;currentURL(); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;params-&gt;get('main&#95;div&#95;name').$this-&gt;category&#95;selected;?&gt;&#95;top&quot;&gt;  pagination-&gt;getListFooter(); ?&gt; ............... ............... ............... params-&gt;get('show&#95;limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;pageInfo-&gt;limit-&gt;value){ $this-&gt;pagination-&gt;form = '&#95;bottom'; ?&gt; form action=&quot;&amp;lt;?php echo hikashop&#95;currentURL(); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;params-&gt;get('main&#95;div&#95;name').$this-&gt;category&#95;selected;?&gt;&#95;bottom&quot;&gt;  pagination-&gt;getListFooter(); ?&gt; xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")* was created by *[vn2073](/forum/user/6944-vn2073 "View vn2073's Profile")*

Hello HikaShop,
I found 1 topic in this forum that talks about top pagination, but it's not clear and cannot solve my problem when I need pagination appear at top either bottom of each page.
In VIEW display, I open file "listing_div.php", I see code for TOP and under , code for BOTTOM, but it does not appear at top of each page.
Could you please give me some helps??
I appreciate about this help.
Thank you.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$pagination = $this-&gt;config-&gt;get('pagination','bottom', 'top');
if(in_array($pagination,array('top','both')) &amp;&amp; $this-&gt;params-&gt;get('show_limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;pageInfo-&gt;limit-&gt;value){ $this-&gt;pagination-&gt;form = '_top';?&gt;
&lt;form action="&lt;?php echo hikashop_currentURL(); ?&gt;" method="post" name="adminForm_&lt;?php echo $this-&gt;params-&gt;get('main_div_name').$this-&gt;category_selected;?&gt;_top"&gt;
&lt;div class="hikashop_products_pagination"&gt;
&lt;?php echo $this-&gt;pagination-&gt;getListFooter(); ?&gt;
...............
...............
...............
&lt;?php if(in_array($pagination,array('bottom','both')) &amp;&amp; $this-&gt;params-&gt;get('show_limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;pageInfo-&gt;limit-&gt;value){ $this-&gt;pagination-&gt;form = '_bottom'; ?&gt;
&lt;form action="&lt;?php echo hikashop_currentURL(); ?&gt;" method="post" name="adminForm_&lt;?php echo $this-&gt;params-&gt;get('main_div_name').$this-&gt;category_selected;?&gt;_bottom"&gt;
&lt;div class="hikashop_products_pagination"&gt;
&lt;?php echo $this-&gt;pagination-&gt;getListFooter(); ?&gt;
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ3MzQ2LW5lZWQtcGFnaW5hdGlvbi1hdC10b3Atb2YtZWFjaC1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 6 months ago [\#47690](#47690) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Need pagination at top of each product page . . .](/forum/2-general-talk-about-hikashop/47346-need-pagination-at-top-of-each-product-page#47690 "Hello HikaShop, I found 1 topic in this forum that talks about top pagination, but it's not clear and cannot solve my problem when I need pagination appear at top either bottom of each page. In VIEW display, I open file &quot;listing&#95;div.php&quot;, I see code for TOP and under , code for BOTTOM, but it does not appear at top of each page. Could you please give me some helps?? I appreciate about this help. Thank you. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $pagination = $this-&gt;config-&gt;get('pagination','bottom', 'top'); if(in&#95;array($pagination,array('top','both')) &amp;&amp; $this-&gt;params-&gt;get('show&#95;limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;pageInfo-&gt;limit-&gt;value){ $this-&gt;pagination-&gt;form = '&#95;top';?&gt; form action=&quot;&amp;lt;?php echo hikashop&#95;currentURL(); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;params-&gt;get('main&#95;div&#95;name').$this-&gt;category&#95;selected;?&gt;&#95;top&quot;&gt;  pagination-&gt;getListFooter(); ?&gt; ............... ............... ............... params-&gt;get('show&#95;limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;pageInfo-&gt;limit-&gt;value){ $this-&gt;pagination-&gt;form = '&#95;bottom'; ?&gt; form action=&quot;&amp;lt;?php echo hikashop&#95;currentURL(); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;params-&gt;get('main&#95;div&#95;name').$this-&gt;category&#95;selected;?&gt;&#95;bottom&quot;&gt;  pagination-&gt;getListFooter(); ?&gt; xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")*

You don't need to edit anything. Just change the option "pagination" under the tab Display of the configuration.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ3MzQ2LW5lZWQtcGFnaW5hdGlvbi1hdC10b3Atb2YtZWFjaC1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 6 months ago [\#47697](#47697) by [vn2073](/forum/user/6944-vn2073 "View vn2073's Profile")  Replied by *[vn2073](/forum/user/6944-vn2073 "View vn2073's Profile")* on topic *[Re: Need pagination at top of each product page . . .](/forum/2-general-talk-about-hikashop/47346-need-pagination-at-top-of-each-product-page#47697 "Hello HikaShop, I found 1 topic in this forum that talks about top pagination, but it's not clear and cannot solve my problem when I need pagination appear at top either bottom of each page. In VIEW display, I open file &quot;listing&#95;div.php&quot;, I see code for TOP and under , code for BOTTOM, but it does not appear at top of each page. Could you please give me some helps?? I appreciate about this help. Thank you. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $pagination = $this-&gt;config-&gt;get('pagination','bottom', 'top'); if(in&#95;array($pagination,array('top','both')) &amp;&amp; $this-&gt;params-&gt;get('show&#95;limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;pageInfo-&gt;limit-&gt;value){ $this-&gt;pagination-&gt;form = '&#95;top';?&gt; form action=&quot;&amp;lt;?php echo hikashop&#95;currentURL(); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;params-&gt;get('main&#95;div&#95;name').$this-&gt;category&#95;selected;?&gt;&#95;top&quot;&gt;  pagination-&gt;getListFooter(); ?&gt; ............... ............... ............... params-&gt;get('show&#95;limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;pageInfo-&gt;limit-&gt;value){ $this-&gt;pagination-&gt;form = '&#95;bottom'; ?&gt; form action=&quot;&amp;lt;?php echo hikashop&#95;currentURL(); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&#95;params-&gt;get('main&#95;div&#95;name').$this-&gt;category&#95;selected;?&gt;&#95;bottom&quot;&gt;  pagination-&gt;getListFooter(); ?&gt; xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")*

Hello Nicolas,
Thank you very much for your help.
I found it, change to display both of top and bottom.
Nice weekend.

VN2073

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ3MzQ2LW5lZWQtcGFnaW5hdGlvbi1hdC10b3Atb2YtZWFjaC1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.071 seconds

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