Remove pagination for a specific page

  • Posts: 86
  • Thank you received: 3
9 years 5 months ago #215476

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.6

Hi

Is it possible to remove the pagination for a specific page ?

Regards
Picht

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

  • Posts: 26205
  • Thank you received: 4032
  • MODERATOR
9 years 5 months ago #215482

Hi,

What pagination ? What specific page ?

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: 86
  • Thank you received: 3
9 years 5 months ago #215515

I have a page where i show some specific products and only want to show the first 3 i a row.
But on the page there is the pagination at the bottom to show more products.

I can remove pagination in the configuration, but this will also remove the pagination for all pages where it is actually needed.

For other reasons (template reasons) i cant use a module in stead.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 5 months ago #215527

Hi,

To remove the pagination on a specific listing, you can potentially edit the view "product / listing_div" and add the code:

if($this->params->get('id',0) == 'X'){
	$pagination = 'none';
}
Right after:
$pagination = $this->config->get('pagination','bottom');

And replace 'X' by the id of the menu / module in question.

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

  • Posts: 84
  • Thank you received: 2
3 years 4 months ago #336526

Hi,
Could you please tell me how to hide pagination only in product pages?
I wish to see pagination in category and subcategory listings, but in product (all product) page I wish to hide the pagination.

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

  • Posts: 12953
  • Thank you received: 1778
3 years 4 months ago #336533

Hello,

The solution provided above should actually do the job for what you need.

If you have some questions regarding the application of that solution, feel free to ask us.

Kind regards,
Mohamed.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum
loading