diff --git a/.vscode/ftp-kr.sync.cache.json b/.vscode/ftp-kr.sync.cache.json index 7520cfe6..c53d9655 100644 --- a/.vscode/ftp-kr.sync.cache.json +++ b/.vscode/ftp-kr.sync.cache.json @@ -941,8 +941,8 @@ "defines.inc.php": { "type": "-", "size": 8247, - "lmtime": 1742897029493, - "modified": false + "lmtime": 1743429384853, + "modified": true }, "defines_uri.inc.php": { "type": "-", @@ -1025,7 +1025,7 @@ }, ".htaccess": { "type": "-", - "size": 3568, + "size": 3651, "lmtime": 0, "modified": true }, diff --git a/classes/Product.php b/classes/Product.php index ebbba501..523fb7b2 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -3954,6 +3954,11 @@ class ProductCore extends ObjectModel $price -= $specific_price_reduction; } + // Zaokrąglanie w górę tylko gdy mamy redukcję + if ($specific_price && $specific_price['reduction'] > 0) { + $price = Tools::ps_round($price); + } + // Group reduction if ($use_group_reduction) { $reduction_from_category = GroupReduction::getValueForProduct($id_product, $id_group);