Zaktualizuj znacznik czasu i status plików w ftp-kr.sync.cache.json; dodaj zaokrąglanie ceny w klasie Product

This commit is contained in:
2025-04-16 22:34:41 +02:00
parent c7e5ebfd2d
commit 241b2c6598
2 changed files with 8 additions and 3 deletions

View File

@@ -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
},

View File

@@ -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);