Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product page pagination not working #49

Closed
babanoregrety2k opened this issue Apr 23, 2018 · 4 comments
Closed

Product page pagination not working #49

babanoregrety2k opened this issue Apr 23, 2018 · 4 comments

Comments

@babanoregrety2k
Copy link

Please I found out that the product page pagination is not working.
when I select a category the products in the category are not paginated even though I can see that the code is implement but is not doing the work.
Please can you just check and resolve the issue.

Also the front page products too should be limited to say 12 items per New Arrivals and Featured Products

@belguinan
Copy link
Contributor

Hello,
it's working,
If you look into "ProductController@search"
You gonna find this line :
$productsResult = $this->productRepo->paginateArrayResults($products, 10);

The front page is hardcoded, they select all products in the category_id 2 and 3
You should customize it as you like

search for you HomeController@index
App/Http/Controllers/Front/HomeController

@babanoregrety2k
Copy link
Author

Great i can see that the search result for products is paginated but the products in category page is not paginated. Anyway i will fix it myself it's not really an issue just want to point it out.

@jsdecena jsdecena closed this as completed May 3, 2018
@klukiyan
Copy link

@authemany2k
have you fix it? can you give a hint how you did it?

@babanoregrety2k
Copy link
Author

babanoregrety2k commented Mar 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants