- Posts: 162
- Thank you received: 0
Pagination Override
- info@vesica.org
-
Topic Author
- Offline
-- Joomla version -- : 2.5.24
Hi,
Is there a possibility to override the pagination.php file located in com_hikashop/administrator/helpers folder? Could you please tell me why there is no view file for front-end?
thanks!
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Firstly, can you tell me how do you exactly want to edit the pagination, so that we can understand your issue and help you ?
Thanks
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
- Posts: 162
- Thank you received: 0
Please see screenshot. I'm using icon fonts all over the website and I want to remove the html characters.
thanks!
Please Log in or Create an account to join the conversation.
The pagination can be override using the "template override" system.
www.hikashop.com/support/support/documen...tation.html#override
File : templates/YOUR_TEMPLATE/html/pagination.php
The file should contain the functions :
* pagination_list_render($list)
* pagination_item_active($item)
* pagination_item_inactive($item)
It allows you to override the different parts of the pagination.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
- Posts: 162
- Thank you received: 0
could you please offer a more detail answer. I've looked over the pointed documentation and couldn't find anything about pagination.
thanks!
Please Log in or Create an account to join the conversation.
HikaShop is compatible with the Joomla pagination system and thus you can override the pagination in your joomla template in the same manner that you would do with the Joomla pagination. You can read more about this on these links:
docs.joomla.org/Understanding_Output_Overrides
www.lesarbresdesign.info/support-information/pagination
stackoverflow.com/questions/16512074/joo...-pagination-override
stackoverflow.com/questions/8702284/joom...tion-php-not-working
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
- Posts: 162
- Thank you received: 0
thank you for your help!
What you're telling me is that I have to do a normal Joomla template override and I should copy the pagination.php from com_hikashop/administrator/helpers to templates/MY_TEMPLATE/html/pagination.php ? If yes, I already did that before starting this tread and unfortunately it breaks the hikashop layout. On screen1 is the layout as it should be and on screen2 is the layout after pagination override.
thanks!
Please Log in or Create an account to join the conversation.
If you have such kind of page it means that your have a PHP fatal error.
Please check your PHP error log.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
- Posts: 162
- Thank you received: 0
This is the error:
Could you please tell me how do I fix it?
thanks!
Please Log in or Create an account to join the conversation.
It looks like you put the class hikashopBridgePaginationHelper in your pagination.php file but you just have to put the function I listed and just that function (no class).
Please check the code you wrote and don't hesitate to read the link that Nicolas gave you, the second link provide you a sample of "pagination.php" file.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Does hikashop redefine the pagination only for the hikashop code that is use in the front End ?
Is there a way to manage HKS pagination look and feel in the HKS BE ?
regard's
Please Log in or Create an account to join the conversation.
Pagination helper can be override in the FE and in the BE.
The override is for the template, so you just have to put in the BE template override folder.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- info@vesica.org
-
Topic Author
- Offline
- Posts: 162
- Thank you received: 0
Jerome wrote: Hi,
It looks like you put the class hikashopBridgePaginationHelper in your pagination.php file but you just have to put the function I listed and just that function (no class).
Please check the code you wrote and don't hesitate to read the link that Nicolas gave you, the second link provide you a sample of "pagination.php" file.
Regards,
Solved!
thanks Jerome for your patience and support!
Please Log in or Create an account to join the conversation.
For jomla template we can copy pagination to templates/YOUR_TEMPLATE/html/pagination.php
Is there a path location specific for hikashop where we can copy the pagination.php file ?
For joomla pagination , i think only Menu for blog layout use pagination ..... Which hks extension use pagination ?
( i don't understand joomla difference beetween pagination and page navigation so i can write wrong things !! )
regard's
Please Log in or Create an account to join the conversation.
And you can also have only one pagination definition for the whole website.
It depends how you write the templates/YOUR_TEMPLATE/html/pagination.php file.
That file will override both the Joomla and the HikaShop pagination.
Based on what you write in it, you'll be able to customize the pagination system the way you want.
Pagination in HikaShop is used by:
- the categories listings
- the products listings
- the orders listing
- the downloads listing
Please Log in or Create an account to join the conversation.