Pagination problem

  • Posts: 4
  • Thank you received: 0
11 years 10 months ago #80156

Hello,

The issue i am facing is with the seo turned on or off in both cases the pagination works fine but does not effect the url at all. as a result lets say if the user is at second page of the pagination and clicks to a different page lets say Contact Page and then comes back by either pushing the back button or clicking the store url again (same url where pagination was). the user is taken to the last state i.e. Page 2 of the pagination. It should reset to the first page as soon as the user browses away.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 10 months ago #80184

Hi,

I didn't really understood the problem that you are facing, but can you give me a link to your web site ?

The following user(s) said Thank You: sheraz

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

  • Posts: 4
  • Thank you received: 0
11 years 10 months ago #80186

creativecellutions.com/bbmg/ this is the main url

Click on Merchandise

creativecellutions.com/bbmg/merchandise.html

You will see the products list and at the bottom the pagination .. click on "2" for the second page ans the second page loads but you will notice the url creativecellutions.com/bbmg/merchandise.html remains the same.

now if you click on any other link such as Contact etc. and then click again on Merchandise it loads the "Page 2" again where it should load the first page "Page 1"

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
11 years 10 months ago #80237

Yes, the pagination is saved in the user session so that the user can more easily browse the store nd go back where he was instead of having to go againt o the same page of the listing when going back in the listing.
It's not a bug, it's a feature.

The following user(s) said Thank You: Jerome, Mohamed Thelji, sheraz

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

  • Posts: 4
  • Thank you received: 0
11 years 10 months ago #80286

But if the client demands it is there a way we can turn it off?

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

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
11 years 10 months ago #80314

Hi,

You can add in your listing views (products, category)

$app = JFactory::getApplication();
$app->setUserState($this->paramBase.'.limitstart', 0);
It would be erase the value in session so, it would only change the page when the value would be pass by post/get.

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: sheraz

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

  • Posts: 4
  • Thank you received: 0
11 years 10 months ago #80341

Thanks jerome yr a lifesaver :)

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

Time to create page: 0.049 seconds
Powered by Kunena Forum