Search + pagination

Phoca Cart - complex e-commerce extension
keep2000
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 14 Nov 2022, 12:04

Search + pagination

Post by keep2000 »

I noticed something regarding the search in Joomla 5 and PC beta66.

When I search for something, I get this URL path: /index.php?option=com_phocacart&view=items&Itemid=101&limitstart=0&search=toy

However, when I use the pagination afterward, I get this: /index.php?option=com_phocacart&view=items&id=0&Itemid=101&limitstart=10

It seems to forget the search parameter, so I get the next batch of all products, not just the filtered ones.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search + pagination

Post by Jan »

Hi, which version of Joomla do you use?

This can be related to breaking changes in Joomla - in versions: 5.1.3 and 4.4.7

There are still a lot of problems in Joomla pagination, but try to test the latest Phoca Cart Beta version, there are some new hacks to prevent from these Joomla problems (but still under work, because new patches are added to Joomla because of this problem).
https://github.com/PhocaCz/PhocaCart/re ... Beta70.zip

Different new patches:
https://github.com/joomla/joomla-cms/pull/44023
https://github.com/joomla/joomla-cms/pull/44069
etc.
If you find Phoca extensions useful, please support the project
keep2000
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 14 Nov 2022, 12:04

Re: Search + pagination

Post by keep2000 »

Joomla 5.1.4
I've installed beta70, but nothing changed to me
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search + pagination

Post by Jan »

Hi, applied both the patches, beta 70 and the search parameter is not lost :idea:

Image
Even tested by different users :idea:

Jan
If you find Phoca extensions useful, please support the project
Webguy
Phoca Enthusiast
Phoca Enthusiast
Posts: 60
Joined: 16 May 2024, 15:59

Re: Search + pagination

Post by Webguy »

Hi Jan,

Using
- Joomla: 5.1.4
- Yootheme: 4.4.8
- Phoca: Beta71

Yootheme template for "Phoca cart Category" with elements;
- Phoca Cart Category Module (To have tree structure in categories)
- Phoca Cart Filter Module (For the rest of the filtering like price & tags)
- PC Grid
- Pagination


I'm also running into this issue. I start at;
https://fleev.nl/webshop/woonkamer

Then apply price(prijs), this somehow resets the fact that i'm in 'woonkamer'
https://fleev.nl/webshop/items?price_from=5&price_to=50

Then look at the url's in the pagination, they remember the 'woonkamer'. but don't see the filter.
https://fleev.nl/webshop/woonkamer?start=15


Looking at this it seems the category & filter modules are not sharing their information?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search + pagination

Post by Jan »

Hi, there were introduced some problematic router changes in Joomla 5.1.3 (see previous posts)

- try to updated to latest Phoca Cart Beta version
https://github.com/PhocaCz/PhocaCart/re ... Beta75.zip
- and try to appliy these both patches:
https://github.com/joomla/joomla-cms/pull/44023
https://github.com/joomla/joomla-cms/pull/44069

Then there should not be problems with the pagination.
If you find Phoca extensions useful, please support the project
Webguy
Phoca Enthusiast
Phoca Enthusiast
Posts: 60
Joined: 16 May 2024, 15:59

Re: Search + pagination

Post by Webguy »

Hi Jan,

I've applied the patches but no change. I'll send you the login details in PM so you can see in person.
Post Reply