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

Custom field (image) in list view: Not displayed when on paginated pages. But displayed when force refresh paginated list-view page. #3716

Open
andihuber opened this issue May 16, 2024 · 2 comments
Labels

Comments

@andihuber
Copy link

PHP Version

8.3

Shopware Version

6.6.1.2

Expected behaviour

In List-View i display products in 100% width instead of 50% width when a custom field is checked and an image is uploaded in a special field of the product.

diff

In box-standard.html.twig i make an if-query for that. It works very well. You can see here in the third row that it is displaying: https://shopware-6-target.rebekkaruetz.com/damen/new-collection/?order=name-asc&p=2

BUT: when i paginate on further and then go back to this page the standard-cover image is showing and not the image from custom field (going also over 100% width, but wrong image).

When i force reload the url https://shopware-6-target.rebekkaruetz.com/damen/new-collection/?order=name-asc&p=2 then i see the correct image again. What is the difference? What i am missing?

Actual behaviour

Image defined via custom field is just visible when on first list-view page or when a paginated page is forced refresh.

How to reproduce

You see the correct image and expected behaviour in the screenshot above.

You can now open this link:
https://shopware-6-target.rebekkaruetz.com/damen/new-collection/?order=name-asc&p=2

It should display the image on the left side of the screenshot. When you paginate forth and back the right image will be shown. Which is not correct. With force refresh the correct image is shown again.

@andihuber andihuber added the Bug label May 16, 2024
@andihuber
Copy link
Author

The issues from the shopware-issue-bot above are different issues as far as i can see.

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

No branches or pull requests

1 participant