Skip to content

Commit f6bee9e

Browse files
committed
Fix edge case with price
1 parent ed25e46 commit f6bee9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code/Helper/Entity/Producthelper.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,18 @@ private function handlePrice(&$product, $sub_products, &$customData, $groups = a
350350
{
351351
$customData['price']['default'] = $min;
352352

353+
if ($min === $max)
354+
$customData['price']['default_formated'] = $product->getStore()->formatPrice($min, false);
355+
353356
if ($this->config->isCustomerGroupsEnabled($product->getStoreId()))
354357
{
355358
foreach ($groups as $group)
356359
{
357360
$group_id = (int)$group->getData('customer_group_id');
358361
$customData['price']['group_' . $group_id] = $min;
362+
363+
if ($min === $max)
364+
$customData['price']['group_' . $group_id] = $product->getStore()->formatPrice($min, false);
359365
}
360366
}
361367
}

0 commit comments

Comments
 (0)