-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Crosssells are never shown when using product/list/items.phtml template #7353
Labels
bug report
Component: Catalog
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Comments
koenner01
changed the title
Crosssells are never shown because when adding block to layout
Crosssells are never shown when using product/list.items.phtml template
Nov 8, 2016
koenner01
changed the title
Crosssells are never shown when using product/list.items.phtml template
Crosssells are never shown when using product/list/items.phtml template
Nov 8, 2016
Thanks |
miakusha
added
the
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
label
Jan 19, 2017
koenner01
added a commit
to koenner01/magento2
that referenced
this issue
Feb 18, 2017
Closing this issue. PR was delivered to develop branch: #8602 |
magento-team
added
2.1.x
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
bug report
Component: Catalog
labels
Jul 31, 2017
Internal ticket to track issue progress: MAGETWO-64999 |
Internal ticket to track issue progress: MAGETWO-64844 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug report
Component: Catalog
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
If you try to add the crosssells block anywhere in the layout and use the product/list/items.phtml template, you will never see any output.
Preconditions
Steps to reproduce
Expected result
Actual result
I traced this back to the product/list/items.phtml template where $block->getItemCount() is called. This function will always return null
The line should be changed to similiar functionality as the upsells
if ($exist = count($block->getItems())) {
The text was updated successfully, but these errors were encountered: