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

Fix paged listing with emotion #2585

Closed

Conversation

lacknere
Copy link
Contributor

1. Why is this change necessary?

Because the product listing is not shown if the page parameter is defined and an emotion is shown.

2. What does this change do, exactly?

Remove the sPage parameter check when collecting devices with listing.

3. Describe each step to reproduce the issue or behaviour.

Create an emotion > assign it to a category with products > activate product listing > select "Category start page and listing" as visibility > go to the second page of the product listing > emotion is shown, product listing is not

4. Please link to the relevant issues (if any).

5. Which documentation changes (if any) need to be made because of this PR?

6. Checklist

  • I have written tests and verified that they fail without my change
  • I have squashed any insignificant commits
  • This change has comments for package types, values, functions, and non-obvious lines of code
  • I have read the contribution requirements and fulfil them.

@github-actions
Copy link

github-actions bot commented Sep 12, 2023

Warnings
⚠️ The Pull Request doesn't contain any changes to the Upgrade file

@lacknere lacknere force-pushed the fix-paged-listing-with-emotion branch from 7d69205 to b4a3415 Compare September 12, 2023 11:21
@aragon999
Copy link
Contributor

Mh, I always thought this is a feature and not a bug, i.e. that the emotion is only shown on the first page.

@mitelg
Copy link
Contributor

mitelg commented Sep 19, 2023

this is indeed intentional and the if condition should not be simply removed.

what about an event where you are able to adjust if the method returns data or an empty array?

@lacknere
Copy link
Contributor Author

Just to be clear, if I have an emotion with visibility "start page and listing" and the option "product listing" active, I would expect the emotion AND the product listing to show up when I click on the next page button of the pagination. That is not the case, which is why i thought this was a bug rather than intention.

@mitelg
Copy link
Contributor

mitelg commented Sep 21, 2023

I guess, then the change is too general and will affected other settings and options as well.

we should find a more particular solution and make sure that other settings are not affected. (by writing or extending tests)

@mitelg
Copy link
Contributor

mitelg commented Dec 1, 2023

hey @lacknere any progress here?

@lacknere lacknere force-pushed the fix-paged-listing-with-emotion branch from 50c0ed8 to b4a3415 Compare December 1, 2023 16:38
@lacknere
Copy link
Contributor Author

lacknere commented Dec 1, 2023

@mitelg well, this turned out to work as expected with a clean shopware 5 setup. That was just a bug caused by css from the custom theme 🤦

@lacknere lacknere closed this Dec 1, 2023
@lacknere lacknere deleted the fix-paged-listing-with-emotion branch December 1, 2023 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants