Category Pagination

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
8 years 1 month ago #269031

-- url of the page with the problem -- : www.swiftplantspares.com/jcb-parts-catalogue
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.7.0

I'm on 2.6.4, so perhaps this has changed in version 3 (if there's no solution I'll probably need to move to other software rather than purchasing 3, which would be a shame). When using the category pagination, it's implemented with JavaScript over a POST request, like so:

<a class="pagenav" title="3" onclick="javascript: var f = document.forms['adminForm_hikashop_category_information_menu_302_2_bottom']; f.limitstart_hikashop_category_information_menu_302_2.value=36; f.submit();return false;">3</a>
So this means the pages are not picked up by search engines, each category page does not have a unique URL, and when using the back button to go to a category page, the page has to be refreshed and form data resubmitted in order to view it again. Is it possible to enable category pagination so that it is done with GET parameters and resolve these issues?

Thanks.


Professional website services including website management, Linux server admin and web hosting.
www.sharphosting.uk/
Last edit: 8 years 1 month ago by NigelPeck.

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

  • Posts: 83987
  • Thank you received: 13603
  • MODERATOR
8 years 1 month ago #269088

Hi,

Yes. Turn on the "redirect POST mode" setting of the HikaShop configuration and the system will use GET parameters.

The following user(s) said Thank You: NigelPeck

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

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
8 years 1 month ago #269134

Thanks, that helps in part (back button works without refresh, unique URLs). But it is still using JavaScript links, and now going through a redirect to get to the next page each time. This is not good for search engines indexing and ranking these pages (also not great for performance). I need the pagination links to be proper HTML links ("a" tags) using GET parameters. Is it possible without modifying core files? Thanks.


Professional website services including website management, Linux server admin and web hosting.
www.sharphosting.uk/
Last edit: 8 years 1 month ago by NigelPeck.

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

  • Posts: 83987
  • Thank you received: 13603
  • MODERATOR
8 years 1 month ago #269178

Hi,

Yes. HikaShop uses the pagination system of Joomla. So the template can actually define itself how the links should be:
www.ostraining.com/blog/joomla/page-break-viral/
But I agree that it would be good to add the link to each element of the pagination. We'll add that in the next version of HikaShop.

The following user(s) said Thank You: NigelPeck

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

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
8 years 1 month ago #269217

That's great news, thanks. So if you're going to add that in the next version, does that mean if I override the pagination in the template I will also be overriding the changes in the next version?

Another issue is, what about when filters are selected? I assume that will be included in the pagination links when you do it, but difficult for me to do in the override? Perhaps it's best I wait for the next version, would appreciate your input.


Professional website services including website management, Linux server admin and web hosting.
www.sharphosting.uk/
Last edit: 8 years 1 month ago by NigelPeck.

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

  • Posts: 83987
  • Thank you received: 13603
  • MODERATOR
8 years 1 month ago #269229

Hi,

That's right.

No, you can do the same change we're going to do in your override. However, since you don't know exactly how it works what will take us an hour to write might take you 2 days.
I would recommend waiting too. It should be out in the next few weeks and it doesn't matter for SEO anyway if you have a sitemap properly configured.

The following user(s) said Thank You: NigelPeck

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

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
8 years 1 month ago #269250

Yep, thanks, sounds a good plan.

It does matter for SEO. This is not just a case of having stuff picked up and indexed. When pages are exposed properly through internal linking within the site structure, it helps with ranking by inferring context and relevance for those pages, and giving them more weight.


Professional website services including website management, Linux server admin and web hosting.
www.sharphosting.uk/
Last edit: 8 years 1 month ago by NigelPeck.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum