Jump to content

Selector issue


Roberts R
 Share

Recommended Posts

I have simple page structure:

  • category
    • subcategory
      • simple-product
      • simple-product
      • simple-product
      • simple-product
    • subcategory
    • ....
  • category2

so Im at category page and running

$pages->find("template=simple-product, has_parent=$page, limit=8");

and it returns 0 pages

 

but this returns 4 pages

$pages->find("template=simple-product, has_parent=$page");

Can someone explain why limit does not work here?

EDIT:

So I did some tests and it seems that any limit=n where n is >= actual page count that is possible ... selector return 0 results.

Link to comment
Share on other sites

12 hours ago, Roberts R said:

So I did some tests and it seems that any limit=n where n is >= actual page count that is possible ... selector return 0 results.

Not sure why you would be seeing that. I tested here and couldn't reproduce - that kind of selector works fine for me regardless of limit.

2019-11-02_103934.png.d6f6b63fa99e017117815afed0357de9.png

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...