Skip to content

Search getFirstProduct start to 0#6

Open
mthiebaut wants to merge 1 commit intotrustpilot:masterfrom
mthiebaut:patch-1
Open

Search getFirstProduct start to 0#6
mthiebaut wants to merge 1 commit intotrustpilot:masterfrom
mthiebaut:patch-1

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