Codexshaper / laravel-woocommerce

WooCommerce Rest API for Laravel
MIT License
198 stars 57 forks source link

Get() only returning 10 records #93

Open Steppio opened 2 years ago

Steppio commented 2 years ago

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 commented 2 years ago

Hi,

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

Thanks, Steven