Codexshaper / laravel-woocommerce

WooCommerce Rest API for Laravel
MIT License
189 stars 59 forks source link

Get() only returning 10 records #93

Open Steppio opened 1 year ago

Steppio commented 1 year 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 1 year ago

Hi,

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

Thanks, Steven