[2.3.5] Incorrect html structure after MC-30989 #27920
Labels
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Reported on 2.3.5
Indicates original Magento version for the Issue report.
Preconditions (*)
Steps to reproduce (*)
magento2/app/code/Magento/Catalog/view/frontend/templates/product/list/items.phtml
Lines 245 to 292 in 1e28f35
<div>
and closing</div>
aren't in the same block, which can most likely result in incorrect html structure being outputted.Expected result (*)
Either:
Or:
If I have to guess, it should probably take the second form, as that's the structure what other templates are following as well:
magento2/app/code/Magento/Catalog/view/frontend/templates/product/compare/list.phtml
Lines 70 to 87 in 1e28f35
magento2/app/code/Magento/Catalog/view/frontend/templates/product/list.phtml
Lines 83 to 109 in 1e28f35
Actual result (*)
Discussion
This seems to have been introduced in Magento 2.3.5 and 2.4-develop by MC-30989, the
<div class="actions-primary">
was moved inside the<?php if ($_item->isSaleable()):?>
while it should probably have been left outside of it.The text was updated successfully, but these errors were encountered: