Pagination Override

  • Posts: 162
  • Thank you received: 0
10 years 11 months ago #172492

-- HikaShop version -- : 2.3.2
-- 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
10 years 11 months ago #172496

Hello,
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.

  • Posts: 162
  • Thank you received: 0
10 years 11 months ago #172674

Hi,

Please see screenshot. I'm using icon fonts all over the website and I want to remove the html characters.

thanks!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 11 months ago #172680

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 162
  • Thank you received: 0
10 years 11 months ago #172788

Hi,

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.

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 11 months ago #172820

Hi,

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.

  • Posts: 162
  • Thank you received: 0
10 years 11 months ago #173124

Hi,

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!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 11 months ago #173157

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 162
  • Thank you received: 0
10 years 11 months ago #173270

Hi,

This is the error:

PHP Fatal error:  Cannot redeclare class hikashopBridgePaginationHelper in /home/beta9/public_html/templates/rt_anacron/html/pagination.php on line 196

Could you please tell me how do I fix it?

thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 11 months ago #173342

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,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: info@vesica.org

Please Log in or Create an account to join the conversation.

  • Posts: 846
  • Thank you received: 92
10 years 11 months ago #173375

@jerome
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.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 11 months ago #173410

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: lionel75

Please Log in or Create an account to join the conversation.

  • Posts: 162
  • Thank you received: 0
10 years 11 months ago #173576

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!

Last edit: 10 years 11 months ago by info@vesica.org.

Please Log in or Create an account to join the conversation.

  • Posts: 846
  • Thank you received: 92
10 years 4 months ago #200202

Could you confirm we can customize each pagination ( look and hiearchy) in a different way : one for joomla one for hikashop ? When you say hikashop use the joomla pagination you mean we can't define a different custom pagination for joomla AND HKS or we can have only one pagination definition ( unique) for the whole website ?
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

Last edit: 10 years 4 months ago by lionel75.

Please Log in or Create an account to join the conversation.

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 4 months ago #200210

You can customize each pagination in a different way yes.
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.

Time to create page: 0.080 seconds
Powered by Kunena Forum