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

Search getFirstProduct start to 0 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mthiebaut
Copy link

@mthiebaut mthiebaut commented Apr 6, 2022

In the function getFirstProduct of the viewLoader.php, change the second param "start" of the prestashop Product::getProducts(...) to 0 instead of 1.

Try to have only one product in you shop store, and you will get an error.
For now, with start 1, you will get the second element, and not the first.

In the function getProducts, change the second param "start" of the prestashop Product::getProducts(...) to 0 instead of 1.

Try to have only one product in you shop store, and you will get an error.
For the moment, with start 1, you will get the second element, and not the first.
@mthiebaut
Copy link
Author

Hello, abandoned project?

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

Successfully merging this pull request may close these issues.

1 participant