Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get() only returning 10 records #93

Open
Steppio opened this issue Oct 20, 2022 · 1 comment
Open

Get() only returning 10 records #93

Steppio opened this issue Oct 20, 2022 · 1 comment

Comments

@Steppio
Copy link

Steppio commented Oct 20, 2022

Hi, great repo, very handy!

I'm just running into a little issue - I'm trying to pull Products from WooCommerce using the following:

$product2 = \Codexshaper\WooCommerce\Facades\Product::where('type', 'variable')->get();

However it's only returning 10 records at a time, but I can see that there are 131 records using the following:

$product2 = \Codexshaper\WooCommerce\Facades\Product::where('type', 'variable')->count();

Is there a setting somewhere where there is a maximum number of records returned per collection?

Thank you for your time!

@Steppio
Copy link
Author

Steppio commented Oct 29, 2022

Hi,

I've found a way around this problem so please ignore.

Thanks,
Steven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant