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

#   how to get this information into pagination overri

##

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

Less More

- Posts: 36
- Thank you received: 0
-
-

12 years 5 months ago [\#156427](#156427) by [svanschu](/forum/user/32672-svanschu "View svanschu's Profile")  *[how to get this information into pagination overri](/forum/31-development/868311-how-to-get-this-information-into-pagination-overri#156427 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3 -- Joomla version -- : 3.2.3 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  In pagination.php is this code for item&#95;active  If I want to override this function for structural purpos I have the problem, that I don't have $this in the override. How can I access the needed information in the override?")* was created by *[svanschu](/forum/user/32672-svanschu "View svanschu's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.3
-- Joomla version -- : 3.2.3
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

In pagination.php is this code for item_active Code:

if($item-&gt;base&gt;0) return "&lt;a class=\"".$class."\" title=\"".$item-&gt;text."\" onclick=\"javascript: document.adminForm".$this-&gt;hikaSuffix.$this-&gt;form. ".limitstart". $this-&gt;hikaSuffix. ".value=".$item-&gt;base."; document.adminForm".$this-&gt;hikaSuffix.$this-&gt;form .".submit();return false;\"&gt;".$item-&gt;text."&lt;/a&gt;"; else return "&lt;a class=\"".$class."\" title=\"".$item-&gt;text."\" onclick=\"javascript: document.adminForm".$this-&gt;hikaSuffix.$this-&gt;form. ".limitstart".$this-&gt;hikaSuffix .".value=0; document.adminForm".$this-&gt;hikaSuffix.$this-&gt;form .".submit();return false;\"&gt;".$item-&gt;text."&lt;/a&gt;";

If I want to override this function for structural purpos I have the problem, that I don't have $this in the override. How can I access the needed information in the override?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2ODMxMS1ob3ctdG8tZ2V0LXRoaXMtaW5mb3JtYXRpb24taW50by1wYWdpbmF0aW9uLW92ZXJyaT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

12 years 5 months ago [\#156438](#156438) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to get this information into pagination overri](/forum/31-development/868311-how-to-get-this-information-into-pagination-overri#156438 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3 -- Joomla version -- : 3.2.3 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  In pagination.php is this code for item&#95;active  If I want to override this function for structural purpos I have the problem, that I don't have $this in the override. How can I access the needed information in the override?")*

The joomla pagination overrides are not meant to be able to handle these unfortunately.
I don't have a clean solution for that.
You should however be able to have your override without the variables in the $this.
For example, for the name of the form, you should be able to retrieve it in the JS directly with something like that:
this.form.submit();
and for the limitstart, you should be able to get it with some jquery js for example: Code:

$('[name^=limitstart]')

But the best would be to just set some specific ids if you want to the limitstart elements with your override and then use these ids when you need them.

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

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