Skip to content

Commit 34e4ce8

Browse files
authored
ENGCOM-4061: Adjust table for grouped products #20808
2 parents 0d6e64c + 48c3c1b commit 34e4ce8

File tree

2 files changed

+5
-4
lines changed
  • app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type
  • dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Block/Catalog/Product

2 files changed

+5
-4
lines changed

app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/grouped.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
</thead>
3434

3535
<?php if ($_hasAssociatedProducts): ?>
36-
<?php foreach ($_associatedProducts as $_item): ?>
3736
<tbody>
37+
<?php foreach ($_associatedProducts as $_item): ?>
3838
<tr>
3939
<td data-th="<?= $block->escapeHtml(__('Product Name')) ?>" class="col item">
4040
<strong class="product-item-name"><?= $block->escapeHtml($_item->getName()) ?></strong>
@@ -80,8 +80,8 @@
8080
</td>
8181
</tr>
8282
<?php endif; ?>
83-
</tbody>
8483
<?php endforeach; ?>
84+
</tbody>
8585
<?php else: ?>
8686
<tbody>
8787
<tr>

dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Block/Catalog/Product/View.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ class View extends ParentView
2727
*
2828
* @var string
2929
*/
30-
protected $formatTierPrice = "//tbody[%row-number%]//ul[contains(@class,'tier')]//*[@class='item'][%line-number%]";
30+
protected $formatTierPrice =
31+
"//tr[@class='row-tier-price'][%row-number%]//ul[contains(@class,'tier')]//*[@class='item'][%line-number%]";
3132

3233
/**
3334
* This member holds the class name of the special price block.
3435
*
3536
* @var string
3637
*/
37-
protected $formatSpecialPrice = '//tbody[%row-number%]//*[contains(@class,"price-box")]';
38+
protected $formatSpecialPrice = '//tbody//tr[%row-number%]//*[contains(@class,"price-box")]';
3839

3940
/**
4041
* Get grouped product block

0 commit comments

Comments
 (0)