Codexshaper / laravel-woocommerce

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

Variation:all() how to return all variations? #104

Closed 2000sh closed 1 year ago

2000sh commented 1 year ago

Title

Some products have over 50 variations. The limit is stuck at 10. I'm not sure how to get all variations of a product instead.

Edit, solution: return Variation::all($product_id, ['per_page' => 100, 'page' => 1]);

2000sh commented 1 year ago

Solution return Variation::all($product_id, ['per_page' => 100, 'page' => 1]);