Skip to content

Commit 3f320ba

Browse files
committed
ACP2E-2224: Regular Price does not show on PLP for Configurable Product
- improvements for updated PAT failures
1 parent 24ec31f commit 3f320ba

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

app/code/Magento/Catalog/Pricing/Price/SpecialPriceBulkResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function generateSpecialPriceMap(int $storeId, ?AbstractCollection $produ
111111
'e.entity_id'
112112
]
113113
);
114-
$data = $connection->fetchAssoc($select);
114+
$data = $connection->fetchAll($select);
115115
$map = [];
116116
foreach ($data as $specialPriceInfo) {
117117
if (!isset($map[$specialPriceInfo['entity_id']])) {

app/code/Magento/ConfigurableProduct/view/base/templates/product/price/final_price.phtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ $block->renderAmount($finalPriceModel->getAmount(), [
3939
</span>
4040
<?php endif; ?>
4141

42-
<?php if ($block->showMinimalPrice()): ?>
43-
<?php if ($block->getUseLinkForAsLowAs()): ?>
4442
<?php if ($block->showMinimalPrice()): ?>
4543
<?php if ($block->getUseLinkForAsLowAs()):?>
4644
<a href="<?= $block->escapeUrl($block->getSaleableItem()->getProductUrl()) ?>" class="minimal-price-link">

dev/tests/integration/testsuite/Magento/ConfigurableProduct/Block/Product/View/Type/ConfigurableViewOnCategoryPageTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,10 @@ public function testCheckConfigurablePriceOnSecondWebsite(): void
126126
'fixture_second_store',
127127
[$this, 'assertProductPrice'],
128128
'configurable',
129-
__('As low as') . ' $10.00'
129+
__('As low as') . ' $10.00 ' . __('Regular Price') . ' $20.00'
130130
);
131131
$this->resetPageLayout();
132-
$this->assertProductPrice(
133-
'configurable',
134-
__('As low as') . ' $150.00'
135-
);
132+
$this->assertProductPrice('configurable', '$150.00');
136133
}
137134

138135
/**

0 commit comments

Comments
 (0)