feat: Enhance price comparison logic and improve code formatting

This commit is contained in:
2025-05-14 15:14:47 +02:00
parent 3acdbfbb23
commit d9304aa88f

View File

@@ -1376,7 +1376,10 @@ class Gm_OmniPrice extends Module
];
}
}
if ($lowestCachedPrice)
$checkIfProductIsDiscounted = self::checkIfProductIsDiscounted($this->getDiscountedProductIds($params['id_shop'], $params['id_currency'], $params['id_country'], $params['id_group']), $productId, $params['id_product_attribute']);
if ( $lowestCachedPrice and $checkIfProductIsDiscounted )
{
$this->context->smarty->assign(
[