pixelpeter / laravel5-woocommerce-api-client

Laravel 5 wrapper for the Woocommerce REST API
MIT License
125 stars 48 forks source link

list all product problem #38

Closed konservasi closed 6 years ago

konservasi commented 6 years ago

Hai pixelpeter,

I have installed this module to my laravel. I need to list all product. I have read issue #13 you gave us a solution how to make pagination. My question is how can we take the data at $param variable. I have no idea how to take the $param parameter.

Need assistant

pixelpeter commented 6 years ago

Please describe your problem more detailed so I can help you or have a look at the guide for pagination https://github.com/pixelpeter/laravel5-woocommerce-api-client#pagination

konservasi commented 6 years ago

Oke. I will share all the code here so that you can review. I dont know excactly what's wrong with my code. Please review and fix.

This is my ProductController.php

https://pastebin.com/rwjGPqau

this is my product.blade.php

https://pastebin.com/Gr7gY3hp

this is my routes Route::get('/product?posts_per_page=10&page={id}', 'ProductController@show');

When I execute the link there is an error

"Undefined variable: params (View: C:\xampp\htdocs\larawoo\resources\views\product.blade.php)"

pixelpeter commented 6 years ago

I'm sorry, but this is not a problem related to this package. Unfortunately I don't have the time to help you with an issue outside of the scope of this library