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:
6
.vscode/ftp-kr.sync.cache.json
vendored
6
.vscode/ftp-kr.sync.cache.json
vendored
@@ -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
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user