laravel-woocommerce icon indicating copy to clipboard operation
laravel-woocommerce copied to clipboard

Get() only returning 10 records

Open Steppio opened this issue 3 years ago • 1 comments

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 avatar Oct 20 '22 17:10 Steppio

Hi,

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

Thanks, Steven

Steppio avatar Oct 29 '22 09:10 Steppio